New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a SQL query or function to change text_lang to 'en' #737
Comments
Command to add to crontabs:
Test:
|
Before SQL command Check count of items in metadatavalue table
Result: count: 2,343,963 Check counts for values of text_lang, ex. 'en'
Check for unique values of text_lang
Result: text_lang [count]
Run the SQL update (took about 10 minutes in LDE)
After SQL command in metadatavalue table:
text_lang [count]
Check for other values of text_lang
|
Anne, thanks. I have a few questions.
|
@keithgee, than you very much for reviewing this. Yes, this will change the metadata language code to As we discussed, please time the query for the first run. Then change the metadata for some items and time how long the query takes susequently. |
@alawvt, you're correct that it runs much faster on subsequent runs. Here is a timing for the first run from a VM on my new-ish desktop with SSD:
Here is the timing on the second run:
I really thought it would still be slow after the first run! |
@keithgee, thank you for testing this and the good news. |
I've created a merge request in the vtlibans_dspace project with changes to deploy a script that gets the database configuration from DSpace and executes the SQL, and put instructions for testing in the merge details. @alawvt Can you or @kdweeks test, and can we close this issue and track from vtlibans_dspace from here on? |
Continued in Add metadata language code updater. |
Continues #476
In the metadata table, create a SQL query or function to change text_lang from NULL OR '' OR 'en_US' to 'en'.
The text was updated successfully, but these errors were encountered: