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

Add index for 'occured_on' column in events tables #167

Open
miterst opened this issue Jun 22, 2023 · 0 comments
Open

Add index for 'occured_on' column in events tables #167

miterst opened this issue Jun 22, 2023 · 0 comments

Comments

@miterst
Copy link
Contributor

miterst commented Jun 22, 2023

I see that the query to reproject all the events is using the "select-all" query:

SELECT * FROM {} ORDER BY occurred_on, sequence_number ASC

Probably we need to add an index for occurred_on otherwise this can become quite slow if we have to reproject a lot of events.

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

No branches or pull requests

1 participant