Typesense is not designed to be a primary datastore. Our design decisions and trade-offs are tailored towards fast search and to act as a secondary data store. A primary data store will have to sacrifice some of that speed for harder consistency and durability guarantees.
j
Jason Bosco
09/01/2023, 3:24 PM
To add to what Kishore said, the benefit of indexing data in Typesense is to speed up search. Primary databases were not designed with search performance as a consideration, so tend to perform slower on mid to large sized datasets. Typesense was designed specifically for this use-case, and stores the indices in memory which makes it super fast
e
Ed
09/04/2023, 7:53 PM
thanks, maybe I should remove some fields I don’t search against, to free up memory?
j
Jason Bosco
09/04/2023, 9:13 PM
Yea, if you're not searching / filtering / faceting / sorting / grouping on a field, then you can just leave it out of the schema. These fields are unindexed and will just be stored on disk and won't count towards memory usage