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

improve account list with asset filter #222

Closed
brianolson opened this issue Oct 13, 2020 · 0 comments
Closed

improve account list with asset filter #222

brianolson opened this issue Oct 13, 2020 · 0 comments
Assignees
Milestone

Comments

@brianolson
Copy link
Contributor

postgres.go buildAccountQuery() current implementation when trying to filter on accounts that have some asset fetches all accounts (over 4e6 on mainnet) and filters them client side. Change to filtering inside postgres adding WHERE clauses after all the table JOINs to filter on [assetid] @> qaa.haid (TODO: double check I got the postgres array operator right and that this works with jsonb values). Similar for account with filter on app-id.

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

No branches or pull requests

2 participants