Hello everyone, i was thinking about how to improv...
# community-help
p
Hello everyone, i was thinking about how to improve my memory usage on a large database. It came to my mind that i could set some fields to
optional:true
. Does this affect the memory usage or is this a stupid thing to ask?
1
a
It will only affect you when you have documents that don't include the specific field. A good way is to map which fields you don't search on, and use index: false on them. This will prevent Typesense from loading them into RAM, instead fetching the field data from disk.
p
Thank you for the quick answer