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

[Feature Request] Batch create databases #6992

Closed
cmackenzie1 opened this issue Jul 11, 2016 · 3 comments
Closed

[Feature Request] Batch create databases #6992

cmackenzie1 opened this issue Jul 11, 2016 · 3 comments

Comments

@cmackenzie1
Copy link
Contributor

Feature Request

Proposal: Batch mode for CREATE DATABASE

Current behavior: There is no current batch processing for creating a database, thus creating even 100 databases takes several seconds as each query is posted and processed.

Desired behavior: The ability to batch create new databases. For example, a text file containing a list of database names separated line-by-line.

curl -XPOST 'localhost:8086/query/create' --data-binary @dbnames.txt

Use case: For some data models where data cannot be stored in a single database due to it having sensitive information and should only be accessible by the allowed users, thus requiring separate username/password for each database. Therefore, importing data would also require the creation of many databases which currently takes several minutes, high cpu and a large amount of memory to create 10,000 databases.

@jsternberg
Copy link
Contributor

Now that we have query management, we can probably just make it possible to do batch queries in general when a person may not care about the result. My initial impression is that batch processing would be trivial to implement.

@jwilder thoughts?

@corylanou
Copy link
Contributor

I'm confused.

Doesn't:

create database foo; create database bar;

Solve the problem for them already?

@jsternberg
Copy link
Contributor

@corylanou no because both of those operations are blocking and won't return an HTTP response until they are finished. This is for running something when you don't care about the end result so the HTTP response will just return immediately saying it was submitted and is running.

@timhallinflux timhallinflux added this to the 1.1.0 milestone Dec 19, 2016
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

4 participants