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

More efficient database management #6

Open
10 tasks
giocomai opened this issue Jan 14, 2023 · 0 comments
Open
10 tasks

More efficient database management #6

giocomai opened this issue Jan 14, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@giocomai
Copy link
Collaborator

giocomai commented Jan 14, 2023

Cache less

  • cache only requested properties
  • enable pruning of properties: remove from the cache properties that are known to be unnecessary in a given project

Make cache more efficient

  • Use separate tables for properties (all P[:digit:]+), with content that is language agnostic, and other fields, such as label, description, alias, wikipedia link, etc., that are language specific
  • drop letter "P" from the property column, and turn the column into numeric type
  • drop letter "Q" from id column, and turn into numeric type
  • make sure new tables are created already indexed
  • prepare function for updating the database when deprecating old tables

Easier support for multi-lingual contexts

  • keep language-agnostic part of the properties in a separate property (see above)

Alternative backends

  • check and compare SQLite and DuckDB speed in this context

Cache more quickly

@giocomai giocomai self-assigned this Jan 14, 2023
@giocomai giocomai added the enhancement New feature or request label Jan 14, 2023
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