Skip to content
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

Speed up incremental search reindex #530

Merged

Conversation

DavidMStraub
Copy link
Member

@DavidMStraub DavidMStraub commented Aug 4, 2024

The incremental search reindex was very inefficient in case of many updates. And that is what is used after importing a file. Imprting example.gramps locally using a SQLite index, before:

[2024-08-04 17:43:40,381: INFO/ForkPoolWorker-6] Task
gramps_webapi.api.tasks.import_file[48c173e5-0d0f-4cd6-b682-aef48bbdda9e]
succeeded in 2314.4943576940022s: None

... and after:

[2024-08-04 22:24:36,800: INFO/ForkPoolWorker-6] Task 
gramps_webapi.api.tasks.import_file[57839f70-15a8-4540-9d46-9d3e63f6d451]
succeeded in 77.58003538799676s: None

😮

I believe this fixes #436.

@DavidMStraub
Copy link
Member Author

Added another fix: the search index wasn't updated after using the delete objects feature.

@DavidMStraub DavidMStraub merged commit c007e7c into gramps-project:master Aug 5, 2024
1 check passed
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.

GEDCOM import is too slow
1 participant