summaryrefslogtreecommitdiffstats
path: root/common/entitybuffer.cpp
Commit message (Collapse)AuthorAge
* Avoid overwriting local changes with remote modifications.Christian Mollekopf2018-06-26
| | | | | | | | | | | | | | | | | | | The case we ran into is the following: * Fetching the full payload and marking all messages of a thread as read happens simultaneously. * The local modification to mark as read gets immediately overwritten when the full payload arrives. * Eventually the modification gets replayed to the server though (and the reversal isn't because coming from the source), so on next sync the situation fixes itself. To be able to improve this we try to protect local modifications in that properties that have been modified since baseRevision (which currently isn't, but should be equal to the last to the server replayed revision) are not overwritten. This conflict resolution strategy thus always prefers local modifications. baseRevision is currently set to the current maximum revision of the store at the time when the resource creates the modification.
* Refactored the query part of the entity reader into DataStoreQuery.Christian Mollekopf2016-09-19
| | | | | | | | | DataStoreQuery now encapsulates the low-level query that operates directly on the storage. It no longer has access to the resource buffers, and is instantiated by the type implementation, so we can specialize the query alogorithm per type, but not per resource. This will allow us to implement the threading queries for the mailtype.
* Fromatted the whole codebase with clang-format.Christian Mollekopf2016-03-03
| | | | clang-format -i */**{.cpp,.h}
* Cleaner EntityBuffer constructorChristian Mollekopf2016-02-02
|
* Fixed warningsChristian Mollekopf2016-01-31
|
* Renamed Akonadi2 to SinkChristian Mollekopf2016-01-20
| | | | (except for documentation).
* Modify/Delete actionsChristian Mollekopf2015-07-19
|
* Compile with flatbuffers 1.1Christian Mollekopf2015-04-12
|
* Use memcpy to copy tables into vectors.Christian Mollekopf2015-04-07
| | | | | | Ideally we wouldn't be copying at all, and somehow cast the table to a vector. Unfortunately I haven't figured out how to do that, and this solution at least gets us from 0.065 ms to 0.028 ms in testCreateCommand.
* Uid index + query using that index.Christian Mollekopf2015-01-24
| | | | ...and a couple of other fixes.
* Writing from facade.Christian Mollekopf2015-01-15
|
* Made the domain adaptor actually work. We can read stuff now.Christian Mollekopf2015-01-07
|
* DomainTypeAdaptor factory, per type preprocessor pipeline configuration.Christian Mollekopf2015-01-02
|
* Moved entitybuffer construction code to EntityBufferChristian Mollekopf2014-12-31
|
* Buffers wrapped into entity buffer, async command progress tracking.Christian Mollekopf2014-12-28