4 ms·
>Also, Sonic only keeps the N most recently pushed results for a given word, in a sliding window way (the sliding window width can be configured) If you discar
by DeathArrow 4y ago
>Also, Sonic only keeps the N most recently pushed results for a given word, in a sliding window way (the sliding window width can be configured)
If you discard many potential hits, why not use /dev/null as the search engine?
- nine_k 4y agoThis thing looks like a very genetic cache. You can of course use /dev/null as a degenerate cache, without any performance benefit though.
- Someone1234 4y agoI believe you must have misread what you quoted, because whatever point you're trying doesn't really follow what you quoted. They let you configure the number of expected results to cache for a given query, the number of cache results are configurable based on your use-case for the results (e.g. if your website only lists 100 results, don't store beyond that). If more results than that for a given query are returned then they disregard additional results since you told it you won't make use of them. In essence, they're saving you from caching results that you'll never consume. How you got from this to "just use /dev/null" is a mystery to me. It has to be a misread or misunderstanding.