Make account lookup with auth-addr filter instant.
Problem
Queries for accounts with auth-addr are slow[^1].
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)
[^1]: This is a placeholder issue - Nodely is going to do PR for that soon, following tests on light-indexer and fnet
Here is an algorand code chat service, taking a first-pass at the issue.
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).
Wow, impressive. Incorrect but still impressive.
- auth field is actually named
spendin the DB. - Postgres might not consider the partial index unless the exact filter expression is also present in the queries.