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

Runtime support for ATTACHing multiple databases #1234

Open
simonw opened this issue Feb 18, 2021 · 1 comment
Open

Runtime support for ATTACHing multiple databases #1234

simonw opened this issue Feb 18, 2021 · 1 comment
Labels

Comments

@simonw
Copy link
Owner

simonw commented Feb 18, 2021

The implementation in #1232 is ready to land. It's the simplest-thing-that-could-possibly-work: you can run datasette one.db two.db three.db --crossdb and then use the /_memory page to run joins across tables from multiple databases.

It only works on the first 10 databases that were passed to the command-line. This means that if you have a Datasette instance with hundreds of attached databases (see Datasette Library) this won't be particularly useful for you.

So... a better, future version of this feature would be one that lets you join across databases on command - maybe by hitting /_memory?attach=db1&attach=db2 to get a special connection.

Originally posted by @simonw in #283 (comment)

@simonw
Copy link
Owner Author

simonw commented Feb 22, 2021

I'm not going to work on this for a while, but if anyone has needs or ideas around that they can add them to this issue.

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

No branches or pull requests

1 participant