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

CORE-1207. Improving Liquibase startup time by pre-caching values of cos... #82

Merged
merged 1 commit into from
Jan 22, 2013

Conversation

kyrill007
Copy link
Contributor

...tly methods in SqlGeneratorFactory: 50% improvement in startup speed.

…costly methods in SqlGeneratorFactory: 50% improvement in startup speed.
@amuraco
Copy link
Contributor

amuraco commented Jan 3, 2013

I've adopted this in a local build of liquibase and haven't seen any significant down sides to it. Technically, these classes can't get unloaded by the classloader, but I don't think they were likely candidates anyways.

@kyrill007
Copy link
Contributor Author

I didn't imply class unloading. I am just trying to prevent those expensive calls. Do you think you may merge this pull request relatively soon?

@pieterbos
Copy link
Contributor

I've seen the problem as well. We have a large changeset to test this with that takes 20 seconds to run even with no changes (we should clean it up).

This call is used to check if a change supports a database.

I solved it differently locally: by not running all the validation checks if the change has already been ran and it should not be run this time either. I'll check if i can add a pull request for that feature too, but i'm not sure if it has dangerous other effects. It's a 50% speedup in my case.

Another fix is caching the result in AbstractChange in a similar way as this pull request, since it gets called several times with the same parameters from there!

@nvoxland
Copy link
Contributor

Thanks, the change does look good. There is definitely other reflection based caching we can do as well. I'll keep an eye out for it.

@pieterbos, if you can add a pull request for your change that would be great too.

nvoxland added a commit that referenced this pull request Jan 22, 2013
CORE-1207. Improving Liquibase startup time by pre-caching values of cos...
@nvoxland nvoxland merged commit d1272fb into liquibase:master Jan 22, 2013
nvoxland pushed a commit that referenced this pull request Jul 3, 2019
DAT-1898 fix error message grammar
filipelautert added a commit that referenced this pull request Apr 23, 2024
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.

None yet

4 participants