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

Foreign Key fields not indexed #554

Open
lchen-2101 opened this issue Jan 15, 2025 · 0 comments
Open

Foreign Key fields not indexed #554

lchen-2101 opened this issue Jan 15, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@lchen-2101
Copy link
Collaborator

lchen-2101 commented Jan 15, 2025

Short description explaining the high-level reason for the new issue.

Current behavior

submission table in the filing database with foreign key reference fields are not indexed, which slows down query performance. e.g. select * from submission where filing = 244; which only returned 181 rows at time of writing took 2 mins to query.

through api:
https://{filing-api-url}/filing/v1/filing/institutions/1234364890REGTECH002/filings/2024/submissions

Expected behavior

Query should be a lot more performant when properly indexed

tables:

  • submission:
    • only has index on pk, and filing_counter, no index on filing.
@lchen-2101 lchen-2101 added the bug Something isn't working label Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant