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

Performance improvements on metadata and core schemas #4346

Open
charlesBochet opened this issue Mar 6, 2024 · 1 comment
Open

Performance improvements on metadata and core schemas #4346

charlesBochet opened this issue Mar 6, 2024 · 1 comment
Labels

Comments

@charlesBochet
Copy link
Member

charlesBochet commented Mar 6, 2024

Scope & Context

We have noticed that the following indexes/foreign keys are missing:

  1. metadata."workspaceCacheVersion"(workspaceId) should be converted to UUID
  2. metadata."workspaceCacheVersion"(workspaceId) should have a foreign key to core.workspace(id) + onDelete Cascade
  3. metadata."workspaceCacheVersion"(workspaceId) should be indexed
  4. metadata."fieldMetadata" should have a composite index on (objectMetadata, workspaceId)
  5. metadata."relationMetadata" should have two indexes on (toObjectMetadataId) + (fromObjectMetadataId)

Technical inputs

  • These indexes should be added to metadata entities located in src/metadata
@charlesBochet
Copy link
Member Author

@magrinj @Weiko FYI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🆕 New
Development

No branches or pull requests

1 participant