Closed
Conversation
e32571a to
4e8833f
Compare
Member
There was a problem hiding this comment.
Good point when there are no foreign keys.
Member
|
Could you change commit message to be consistent and add test to priority bugfix? |
Contributor
Author
|
I have updated the test file already. |
Contributor
This should be in separate PR (or commit at least). |
disabled foreign keys check removed unnecessary indices enabled journal_mode WAL
4e8833f to
cd0583a
Compare
Contributor
Author
|
I have created a new PR #35 for the bug fix. |
Member
|
With following synthetic benchmark: use Nette\Caching\Cache;
use Nette\Caching\Storages\SQLiteJournal;
require __DIR__ . '/../caching/vendor/autoload.php';
$keys = $tags = $dels = [];
foreach (range(1, 200) as $i) {
$keys[] = "key-$i";
$tags[] = "tag-$i";
if (($i % 4) === 0) $dels[] = "tag-$i";
}
$journal = new SQLiteJournal(__DIR__ . '/bench.s3db');
foreach (range(1, 10) as $loop) {
# One key, multiple tags
$journal->write('key', [Cache::TAGS => $tags]);
# n-keys, one tag
foreach ($keys as $key) {
$journal->write($key, [Cache::TAGS => ['tag']]);
}
# Delete some of tags
$journal->clean([Cache::TAGS => $dels]);
}Apache sequential bench: Apache parallel bench: So 👍 for merge. |
Member
|
@sallyx Could you change the commit message to something like: |
Member
|
@sallyx not title but commit message |
dg
pushed a commit
that referenced
this pull request
Nov 29, 2015
disabled foreign keys check removed unnecessary indices enabled journal_mode WAL
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SQLiteJournal: performance improvements