Open mbookman opened 5 years ago
Limit defined here, currently 100.
You can see the results at https://amp-pd-data-explorer.appspot.com/api/search
Matt asked what order the results are shown. We sort by BQ column name.
IIRC, we currently have about 350 fields, so it would be great if we could test out increasing the number beyond 100.
Also - each table has a participant_id and GUID field. It would be great if the interface would display these fields only once instead of once per table.
Previously when the limit was higher, large datasets (NHS, UKBB) would become laggy after a while.
We should look into using react-window with react-select. That might fix the lagginess. Encode uses react-virtualized, but react-window is better.
FYI there is another problem that I think react-window will also fix. If you pull up CRAI facet at https://amp-pd-data-explorer.appspot.com, you get:
(Note that for some reason this problem is reproducible on my Linux desktop and not my Mac laptop.)
We are trying to display a facet with 1000 values -- 1000 divs. With react-window, instead of 1000 divs, we would only have ~10 (only the facets that are displayed).
So react-window on search box drop-down results + react-window on facets should help with slugginess with large datasets.
Tried this with AMP PD. Reopening because there are issues when option is multiple lines (long text).
react-window
react-window
.react-windowed-select
because it appears to only support sync Select, whereas we are using async Selectreact-virtualized-select
because we are using react-select
2 and it supports 1react-window
for the CRAI problem. This seems even more difficult as each bar is an svg path.Some things AMP PD could do:
In the AMP PD data explorer, when I click on the down arrow or in the search bar itself, a list of facet fields pops up.
These only appear to be for the sample-related tables, not the participants. It seems I need to know the participant fields to search on.