Skip to content

Allow sqlite to be used with journal mode WAL - #11846

Closed
DeepDiver1975 wants to merge 2 commits into
masterfrom
sqlite-wal
Closed

DeepDiver1975 wants to merge 2 commits into
masterfrom
sqlite-wal

Conversation

@DeepDiver1975

Copy link
Copy Markdown
Contributor

refs #10279

@scrutinizer-notifier

Copy link
Copy Markdown

The inspection completed: No new issues

@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

@owncloud-bot retest this please

@karlitschek

Copy link
Copy Markdown
Contributor

good idea. 👍

@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

@owncloud-bot retest this please

@LukasReschke

Copy link
Copy Markdown
Contributor

@owncloud-bot Retest this please.

@LukasReschke

Copy link
Copy Markdown
Contributor

Any reason why we do not set WAL per default (for new instances) and then look how it comes out? - Then at least we developers would test that properly instead of "having yet another option that nobody tests and might lead to exploding things" ;-)

@LukasReschke

Copy link
Copy Markdown
Contributor

If this turns out to be significant faster we might even think about converting the config existing database somehow…

Comment thread config/config.sample.php

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might want to link to an explanation of the different options.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest to support only one option and drop the other one - no need to support multiple things of which one will be then nearly completely untested by us developers.

@LukasReschke

Copy link
Copy Markdown
Contributor
07:14:59 There was 1 error:
07:14:59 
07:14:59 1) Test\TempManager::testLogCantCreateFile
07:14:59 chmod(): No such file or directory

Let's try again.

@LukasReschke

Copy link
Copy Markdown
Contributor

@owncloud-bot Retest this please.

@LukasReschke

Copy link
Copy Markdown
Contributor

@icewind1991 Could the error by any chance be caused by the recent changes to our TMP handling?

@ghost

ghost commented Oct 31, 2014

Copy link
Copy Markdown

🚀 Test PASSed. 🚀
Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/1754/
🚀 Test PASSed. 🚀

@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

Any reason why we do not set WAL per default (for new instances) and then look how it comes out? -

Now that we know that there are no issues with the unit test execution we can think about setting this as default. In addition there is no need for migration of existing databases - this will work right away.

@ghost

ghost commented Nov 21, 2014

Copy link
Copy Markdown

💣 Test FAILed. 💣
Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser-ng-simple/2991/
💣 Test FAILed. 💣

@MorrisJobke

Copy link
Copy Markdown
Contributor

As I currently work on the files_external tests I also use ownCloud as WebDAV backend. Therefore I used following docker image: https://registry.hub.docker.com/u/mmckeen/owncloud/

This is OC 7.0.3 and it took 22.79 minutes to complete the unit tests for the WebDAV backend only. With the above patch applied. (adjusted one line to be compatible with stable7 https://gist.github.com/MorrisJobke/ee6bc8cc9081ed460913) It only took 8.5 minutes.

I would rate this as a nice performance improvement for the low-end instances.

I tested this also with master and it works 👍

@DeepDiver1975

Copy link
Copy Markdown
Contributor Author

Thx @MorrisJobke - I'll set the WAL mode as default and we are ready to merge then

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants