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

denormalize graphql schema #134

Open
mariobassem opened this issue Oct 10, 2023 · 1 comment
Open

denormalize graphql schema #134

mariobassem opened this issue Oct 10, 2023 · 1 comment
Labels
type_feature New feature or request
Milestone

Comments

@mariobassem
Copy link
Contributor

currently, querying simple information from the postgres db requires multiple table joins, expensive calculations and have really bad performance. Hence, some data denormalization is needed, and if possible, doing the required calculations on the fly as events are reported.

@sameh-farouk
Copy link
Member

I noticed that our processor DB didn't use indexes at all.
It is crucial to add database indexes to the entity fields on which one expects filtering and ordering.
I would look first into adding indexes to our schema as the lack of indices is the most common cause of slow API queries.

@sameh-farouk sameh-farouk self-assigned this May 2, 2024
@sameh-farouk sameh-farouk added this to the 3.0.0 milestone May 2, 2024
@sameh-farouk sameh-farouk moved this to Accepted in 3.14.x May 2, 2024
@sameh-farouk sameh-farouk modified the milestones: 3.0.0, later Jun 4, 2024
@sameh-farouk sameh-farouk removed this from 3.14.x Jun 4, 2024
@sameh-farouk sameh-farouk removed their assignment Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type_feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants