Add size_bytes and index_file_count in the zoekt_repositories table
What does this MR do and why?
Add two columns index_file_count and size_bytes to store the repository zoekt file counts and size respectively. We will get these values in the callback for each successful index operation. These values will be used later on for better index assignments.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
| Before | After |
|---|---|
How to set up and validate locally
- Make sure zoekt is configured.
- Add a new commit to any project in the namespace for which Zoekt is enabled.
- Make sure that the
Search::Zoekt::Repositoryrecord for the project has these values setindex_file_countandsize_bytes
Related to #477228 (closed)
Edited by Ravi Kumar