diff options
| author | Martin Tournoij <martin@arp242.net> | 2020-12-26 22:05:20 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-26 23:05:20 +0900 |
| commit | 02ce7ec581e490449391d2d17087ec41d169b0a4 (patch) | |
| tree | b72b2afd79ae7f729350644351d0a221dbb29707 /_example/limit | |
| parent | clarify usleep license (#893) (diff) | |
| download | golite-02ce7ec581e490449391d2d17087ec41d169b0a4.tar.gz golite-02ce7ec581e490449391d2d17087ec41d169b0a4.tar.xz | |
Add ?_cache_size=[..] to connection parameters (#894)
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.
Diffstat (limited to '_example/limit')
0 files changed, 0 insertions, 0 deletions
