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

Sort out frequent DB writes #512

Closed
borekb opened this Issue Oct 26, 2015 · 3 comments

Comments

Projects
None yet
2 participants
@borekb
Copy link
Member

borekb commented Oct 26, 2015

This is an imported issue, original reference WP-512, created on 09 Oct 2015.

An example code that causes us trouble are all sorts of counters, increasing something by one all the time, causing a lot of annoying commits.

We need to think about how to best handle this because the data should be in Git somehow, just not after every update. Maybe commit only once in a configurable interval? On some explicit user action?

@JanVoracek

This comment has been minimized.

Copy link
Member

JanVoracek commented Jan 4, 2016

We should also commit them before every clone / pull / push and undo / rollback.

@borekb

This comment has been minimized.

Copy link
Member

borekb commented Mar 15, 2016

Entities can now be marked as 'frequently written' via the schema.yml file. Every entity can list the frequently-written entities as queries (similar to #586) and optionally specify the commit interval (the default is one hour). VersionPress also commits the entity on actions such as cloning and merging.

Technical details are described in #627.

@JanVoracek

This comment has been minimized.

Copy link
Member

JanVoracek commented Mar 15, 2016

Frequently written entities are not committed on actions specified in comment above – #512 (comment).

@JanVoracek JanVoracek reopened this Mar 15, 2016

JanVoracek added a commit that referenced this issue Mar 30, 2016

octopuss added a commit that referenced this issue Apr 5, 2016

[#512] - small adjustments in schema-readme.md to inform users that s…
…hort interval of frequently-written entities may cause merge conflicts.

@borekb borekb removed the in review label Apr 28, 2016

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