Summary
This release includes two massive performance improvements for Disco.
Highlights
-
Before this release, the query was always re-executed when paginating, i.e., scrolling and loading the next 10 results. This led to janky loading of results, since the entire query had to be re-run on every scroll event. With this fix, pagination is below 1ms and should feel extremely smooth, regardless of query execution time.
-
Highlighting was carried out on all results eagerly, not lazily only for the results that are visible. When indexing 25 MB of data (= a book with ~12.000 printed pages), Disco would take up to 150ms when querying for a single character (the worst case). This fix brings down worst case query time to 60ms for indexes of that size.