Hi team, quick question: does Typesense plan to on...
# community-help
t
Hi team, quick question: does Typesense plan to one day move to a model where the entire dataset does not have to fit in RAM? Maybe using the disk with memory-mapped files (like Meillisearch)? I find the current model to be a limitation, especially given the cost of RAM, and I'm wondering if there's a future where that won't always be the case
k
We don't have concrete plans but we always let community feedback to drive our roadmap, so I will never say never. Typesense is currently optimized for fast, real-time search. This requires RAM. Memory mapping is not a magic bullet: it works well when you are most likely to search on a portion of your dataset often so those parts of the data could be kept "hot" in the memory. This might not always hold true for search engines, in which case you will only get the performance of a disk based search engine like Elasticsearch because the kernel will have to continuously page memory in/out of disk.
t
Hi Kishore - thanks for the response. I understand that. I wonder if it's something worth exploring in the future, though. Perhaps you'll find that people can sacrifice a few extra milliseconds for the cost, depending on how bad the performance is, if you explore storing it on disk. Or maybe provide the flexibility on a per collection basis: either indexed entirely in memory or with memory mapping. Just an idea.
k
Understood. Appreciate the feedback.