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

indexer: add auto-incremented id for faster count #7612

Merged
merged 1 commit into from
Jan 24, 2023

Conversation

gegaowp
Copy link
Contributor

@gegaowp gegaowp commented Jan 24, 2023

before this PR, the count query of a table is slow, we can count on the auto-incremented id and query like
select id from <TABLE> order by id desc limit 1 to get the count, which is faster.

@vercel
Copy link

vercel bot commented Jan 24, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

4 Ignored Deployments
Name Status Preview Comments Updated
explorer ⬜️ Ignored (Inspect) Jan 24, 2023 at 0:53AM (UTC)
explorer-storybook ⬜️ Ignored (Inspect) Jan 24, 2023 at 0:53AM (UTC)
frenemies ⬜️ Ignored (Inspect) Jan 24, 2023 at 0:53AM (UTC)
wallet-adapter ⬜️ Ignored (Inspect) Jan 24, 2023 at 0:53AM (UTC)

@gegaowp gegaowp changed the title indexer: add auto-incremental id for faster count indexer: add auto-incremented id for faster count Jan 24, 2023
@gegaowp gegaowp enabled auto-merge (squash) January 24, 2023 00:52
@gegaowp gegaowp merged commit 95b7493 into MystenLabs:main Jan 24, 2023
@gegaowp gegaowp deleted the indexer-id-to-all branch January 24, 2023 01:15
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

Successfully merging this pull request may close these issues.

2 participants