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

Add ?_cache_size=[..] to connection parameters #894

Merged
merged 1 commit into from Dec 26, 2020
Merged

Add ?_cache_size=[..] to connection parameters #894

merged 1 commit into from Dec 26, 2020

Commits on Dec 26, 2020

  1. Add ?_cache_size=[..] to connection parameters

    Add a shortcut for PRAGMA cache_size; this is a pretty useful setting:
    the default of -2000 (2M) is not especially high, and a lot of people
    will probably want to increase this.
    
    For example, while running a bunch of fairy expensive queries in
    parallel:
    
    	With SetMaxOpenConns(1):
    	 -2000:  5762ms
    	-20000:  4714ms
    
    	With SetMaxOpenConns(20):
    	 -2000:  3067ms
    	-20000:  2532ms
    
    Which isn't a bad performance boost for changing a single number.
    arp242 committed Dec 26, 2020
    Copy the full SHA
    c240601 View commit details
    Browse the repository at this point in the history