William Casarin
46541694a0
nostrdb: search: sort search terms from largest to smallest
...
Add a helper for sorting search words from largest to smallest. This
should help search performance. For example, let's say our search index
is like so:
"the pokemon is cool"
the
the
the
...
* 1000
Our root word search would have to start 1000 new recursive queries. By
sorting by the largest word:
pokemon
pokemon
pokemon
...
* 10
We only have to do 10 recursive searches, assuming larger words are less
common, which will likely be the case most of the time
Signed-off-by: William Casarin <jb55@jb55.com >
2025-08-11 16:40:01 -07:00
..
2025-08-11 16:40:00 -07:00
2025-08-11 16:40:01 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:59 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00
2025-08-11 16:39:43 -07:00