<commit_before># XOSAN types

There is 2 modes for creating an XOSAN storage. They are different and the choice is done forever. You can't **switch from a mode to another** when XOSAN is created, except by removing and re-creating it.

That's why it's **very important to understand pros and cons** of each type.

> On "top" of there 2 types, you can also decide to spread all operations to multiple number of volumes. This is called **distributed** mode. It's very similar to *RAID 0*, which can be placed on top of a *RAID 1* for example. We'll talk about it in the end of this guide.

Here is those 2 types:

* [Replicated](xosan_replicated.md)
* [Disperse](xosan_disperse.md)<commit_msg>add doc on which mode to use (#116)<commit_after># XOSAN types

There is 2 modes for creating an XOSAN storage. They are different and the choice is done forever. You can't **switch from a mode to another** when XOSAN is created, except by removing and re-creating it.

That's why it's **very important to understand pros and cons** of each type.

> On "top" of there 2 types, you can also decide to spread all operations to multiple number of volumes. This is called **distributed** mode. It's very similar to *RAID 0*, which can be placed on top of a *RAID 1* for example. We'll talk about it in the end of this guide.

Here is those 2 types:

* [Replicated](xosan_replicated.md)
* [Disperse](xosan_disperse.md)

## Which mode to choose

In the vast majority of cases, **replicated is better**, because:

* it's almost ALWAYS faster
* it's easier to manage
* it's easier to grow

The only downside is that replicated will "waste" more space.

Using disperse makes sense only if:

* you have big HDDs and you want use the space at most
* you don't use database (or don't care about performances)
* you store big files and you don't need ultra fast data access
{'fraction_non_alphanumeric': 0.07347379794705565, 'fraction_numerical': 0.007023230686115613, 'mean_word_length': 4.216901408450704, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6094744', 'n_tokens_mistral': 561, 'n_tokens_neox': 518, 'n_words': 303}