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

Execute in all databases defined in bee.properties #3

Open
danielfariati opened this issue Oct 20, 2014 · 0 comments
Open

Execute in all databases defined in bee.properties #3

danielfariati opened this issue Oct 20, 2014 · 0 comments
Labels

Comments

@danielfariati
Copy link
Member

danielfariati commented Oct 20, 2014

It would be cool if we could execute bee in all defined databases at once. Especially if we think about schema/database multi-tenancy. The commands that I'd use are:
dbchange:up
dbchange:down
data:validate
schema:validate

The ideal is to run simultaneously, for better performance (maybe even offering the option to configure the number of threads). Something like:
bee dbchange:up -a, to run in every database
bee dbchange:up -a 5 to run in every database, with 5 parallel threads

If there were errors, the log would be divided by database.
Example:
DATABASE_1
WARNING: Failed to execute: alter TABLE table change id id int (11);


DATABASE_2
WARNING: Failed to execute: alter TABLE table change id id int (11);

@danielfariati danielfariati changed the title Executar comando em todos os bancos definidos no bee.properties Execute in all databases defined in bee.properties Feb 22, 2017
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