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

Make account lookup with auth-addr filter instant. #1628

Open
urtho opened this issue Sep 9, 2024 · 2 comments
Open

Make account lookup with auth-addr filter instant. #1628

urtho opened this issue Sep 9, 2024 · 2 comments
Labels
new-feature-request Feature request that needs triage

Comments

@urtho
Copy link
Contributor

urtho commented Sep 9, 2024

Problem

Queries for accounts with auth-addr are slow1.

Solution

  • Add optional partial index that speeds up the query for accounts with auth-addr
  • Modify the auth-addr filer query to make sure it includes the partial index for Postgres & CockroachDB (if enabled)

Footnotes

  1. This is a placeholder issue - Nodely is going to do PR for that soon, following tests on light-indexer and fnet

@7db9a
Copy link

7db9a commented Oct 14, 2024

Here is an algorand code chat service, taking a first-pass at the issue.

video of issue chat

Could this be useful for the community?

We compress the retrieval results, allowing it to feel like it was actual trained on the codebase specifically (even better as it can find the exact files like a needle in a haystack). Tightly integrated into git.

I have an interest in seeing the Algorand ecosystem succeed, as my company built an open source governance platform on Algorand (currently running in as a local test chain until we're comfortable for pub launch).

@urtho
Copy link
Contributor Author

urtho commented Oct 15, 2024

Wow, impressive. Incorrect but still impressive.

  • auth field is actually named spend in the DB.
  • Postgres might not consider the partial index unless the exact filter expression is also present in the queries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-feature-request Feature request that needs triage
Projects
None yet
Development

No branches or pull requests

2 participants