Skip to content

add back variable indexing #6545#7654

Merged
kcondon merged 2 commits intodevelopfrom
6545-variable-indexing
Mar 16, 2021
Merged

add back variable indexing #6545#7654
kcondon merged 2 commits intodevelopfrom
6545-variable-indexing

Conversation

@scolapasta
Copy link
Contributor

What this PR does / why we need it:
This adds back indexing of variable labels and fields added via the Data Curation Tool

Which issue(s) this PR closes:
Closes #6545

Special notes for your reviewer:
The change was just to reduce the number of queries from one per variable to 1 (then put that into a Map).

Suggestions on how to test this:
Test and compare performance of indexing, especially index all. Indexing should take a little longer than current (because) it is indexing more, but a reasonable percentage more. In my testing, for example, 1 dataset took just under a second before this change and just over a second after (with the original variable metadata indexing it took 10 seconds).

Does this PR introduce a user interface change? If mockups are available, please link/include them here:
No

Is there a release notes update needed for this change?:
Yes, installation should reindex to catch variable metadata (the plan is to get this into the same release as Solr upgrade).

Additional documentation:

@scolapasta scolapasta requested a review from lubitchv March 4, 2021 22:27
Copy link
Contributor

@sekmiller sekmiller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonable using an existing query and map for improved performance.

@kcondon kcondon self-assigned this Mar 12, 2021
@kcondon kcondon merged commit e2f30ba into develop Mar 16, 2021
@kcondon kcondon deleted the 6545-variable-indexing branch March 16, 2021 14:42
@djbrooke djbrooke added this to the 5.4 milestone Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Solr search and variable level metadata

4 participants