influxdata / ui

UI for InfluxDB
93 stars 42 forks source link

Determine Measurement Limit for new Data Explorer #5003

Open influx-product-manager opened 2 years ago

influx-product-manager commented 2 years ago

Spike Description

In the old data explorer, there was a hard limit of 200 or 500 entries in the measurement list, depending on a feature flag setting.

We can assume this was done because of performance and the impact of gathering a large list and all the associated metadata.

With the performance improvements that have been made in both back-end and front-end and with the different way we are handing metaqueries, we should determine if this limit is still necessary, and if so - what limit is feasible.

It certainly seems like we could show more than 200 entries without it being problematic.

This spike is for doing some testing and analysis to determine what our options might be here.

Deliverable

influx-product-manager commented 2 years ago

Link to feature: https://influxdata.productboard.com/feature-board/planning/features/14285542

asalem1 commented 2 years ago

After doing some investigative work, the limit on the query doesn't appear to effect the performance of the dropdown to a certain point. When stress testing 10K measurements, the data was received and parsed in less than a second. However, performance issues started to crop up within the Dropdown component itself. Since React needs to keep track of each individual item in the dropdown, the longer the list, the more unperformant the dropdown becomes. All of that is to say that if we decide to remove the limit on the measurements dropdown, we should invest time to update the dropdown to only render a limited number of results that can then be paginated through endless scrolling or some other mechanism.

Prognosis

Potential Solution