-
Notifications
You must be signed in to change notification settings - Fork 323
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
Batch insert suggestions #6080
Comments
Dmitry Bushev reports a new STANDUP for today (2023-03-28): Progress: Started working on the task. Started removing the arguments table. Found out that it can be used during the project renaming. After some consideration decided that we can only store the arguments for project suggestions. Started implementing batch insert query. It should be finished by 2023-03-31. Next Day: Next day I will be working on the #6080 task. Continue working on the task |
close #6139 close #6137 When the project is renamed, the engine cleans up affected modules and initiates modules re-indexing to fill the suggestions database with new records. This way it reduces the amount of information stored in the suggestions database and helps implement #6080 optimization. Changelog: - remove: rename features from the suggestions database - update: rename command to initiate modules cleanup and project re-execution - fix: #6137
Dmitry Bushev reports a new STANDUP for yesterday (2023-03-31): Progress: Retuning to the task. Implemented batch insert. Removed suggestion arguments from the database logic. Updated LS suggestions handling with the new database API. Fixed suggestion database tests. It should be finished by 2023-03-31. Next Day: Next day I will be working on the #6080 task. Continue working on the task |
Dmitry Bushev reports a new 🔴 DELAY for today (2023-04-03): Summary: There is 3 days delay in implementation of the Batch insert suggestions (#6080) task. Delay Cause: Had to switch to #6139 while this task was in progress |
Dmitry Bushev reports a new STANDUP for today (2023-04-03): Progress: Continue with the task. Cleaned up unused methods from SuggestionsRepo. Cleaned up the arguments table. Measured the performance. Fixed legal review report. Cleaned up and prepared the PR It should be finished by 2023-04-03. Next Day: Next day I will be working on the #6080 task. Continue working on the task |
close #6080 Changelog - add: implement `SuggestionsRepo.insertAll` as a batch SQL insert - update: `search/getSuggestionsDatabase` returns empty suggestions. Currently, the method is only used at startup and returns the empty response anyway because the libs are not loaded at that point. - update: serialize only global (defined in the module scope) suggestions during the distribution building. There's no sense in storing the local library suggestions. - update: sqlite dependency - remove: unused methods from `SuggestionsRepo` - remove: Arguments table # Important Notes Speeds up libraries loading by ~1 second. ![2023-04-03-173423_2086x324_scrot](https://user-images.githubusercontent.com/357683/229597470-19dcc010-2a34-43e1-87be-60af99afd275.png) ![2023-04-03-173514_2083x321_scrot](https://user-images.githubusercontent.com/357683/229597476-bf5b3c33-6321-4ac9-a0ca-2fb57d257857.png)
When inserting suggestions in the database, they are stored together with the arguments. This slows down the suggestions inserts.
Currently, suggestions are stored only for the search request, and the arguments are unused. We can remove them to make inserts more efficient.
Task
The text was updated successfully, but these errors were encountered: