Skip to content

Conversation

@npelikan
Copy link
Contributor

@npelikan npelikan commented Jun 6, 2025

The current serial execution of the queries in SQLAlchemyDataSource.get_schema() can be a bit slow, especially on a wide table. This refactors that method to instead run just two queries, which provides a significant speedup. Also added a testing framework for the SQLAlchemyDataSource

@jcheng5
Copy link
Collaborator

jcheng5 commented Jun 6, 2025

I didn't really look closely at this but generic-datasource-improvements ought to get a comprehensive review later anyway.

@jcheng5 jcheng5 merged commit 43ee050 into posit-dev:generic-datasource-improvements Jun 6, 2025
16 checks passed
chendaniely added a commit that referenced this pull request Jun 12, 2025
chendaniely added a commit that referenced this pull request Jun 12, 2025
chore: add pytest in pyproject toml, but uses current tool.uv table

tests: oops put test code in wrong file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants