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

Move domain links outside of the MariaDB database #66

Closed
vlofgren opened this issue Dec 18, 2023 · 2 comments
Closed

Move domain links outside of the MariaDB database #66

vlofgren opened this issue Dec 18, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@vlofgren
Copy link
Contributor

Updating and querying this table is very slow and bogs down both the loader and ranking calculations by a substantial amount. The actual data itself is pretty small, 75,000,000 x 16 bytes = 1.2 GB in prod, but all the indices and uniqueness constraints blows this up to ~10 GB in MariaDB. If we split the data across nodes this would be a few hundred megabytes each, and we'd shave off hours of processing.

Sketch of a solution:

  • Keep it in memory in the index service and have some API for querying it (maybe via QS)
  • Loader writes to file to a file which gets switched over atomically as a whole batch by the index svc
@vlofgren vlofgren added the enhancement New feature or request label Dec 18, 2023
@vlofgren
Copy link
Contributor Author

We also probably want to rename the LinkDB component to something else, to avoid confusion, since it's not really links but documents. To do this we need a migration step to rename the file...

@vlofgren
Copy link
Contributor Author

Implemented as part of #69

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant