-
-
Notifications
You must be signed in to change notification settings - Fork 704
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
Run pks_for_table in inspect, executing once at build time rather than constantly #195
Labels
Comments
Lines 93 to 102 in 446d47f
|
While I'm at it, doing the same thing for fts_table detection is worth considering: Lines 598 to 603 in 446d47f
|
Could also identify all views for that database, which would save on these queries: Lines 543 to 545 in b2188f0
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Right now several Datasette views call the
await self.pks_for_table(...)
method to figure out what primary keys are set for a specific table. This executes aPRAGMA table_info
SQL query.It would be faster and more efficient to execute this query for each table as part of the
inspect()
method.The text was updated successfully, but these errors were encountered: