Improve the latency of search bar suggestions

When dealing with a large number of search quantities in a single app, searching for values in the search bar becomes slow and the UX suffers. The slowness is because we do a partial text match for any definition name, and if the list of registered quantities is large, we end up slowing down the UI.

We can think of ways to improve the overall performance of this search, or then split the search into two phases:

  • Fast tree-lookup of the immediate children. E.g. typing data.section would only suggest quantities/subsections inside that path.
  • Slow, partial text match that considers all definitions.
Assignee Loading
Time tracking Loading