summaryrefslogtreecommitdiffstats
path: root/common/facade.cpp
Commit message (Collapse)AuthorAge
* Improved resource access cachingChristian Mollekopf2015-12-03
| | | | | | | | * Smarter caching. ResourceAccess instances close after a timeout, if not reused. * Introduced a start command to avoid race condition when sending commands to a resource that is currently shutting down. * We resend pending commands after we lost access to the resource * unexpectedly.
* Cache ResourceAccess instances.Christian Mollekopf2015-12-01
| | | | | | | | | We want one connection per application per resource instance. With this change the connection is maintained for the lifetime of the client process (it should probably time out instead), but we at least avoid creating a connection per operation/query, which results in a significant performance boost (~10% for reading, 90% for writing in dummyresourcebenchmark).
* Introduced a QueryRunner objectChristian Mollekopf2015-11-27
| | | | | | | | The QueryRunner object lives for the duration of the query (so just for the initial query for non-live queries, and for the lifetime of the result model for live queries). It's supposed to handle all the threading internally and decouple the lifetime of the facade.
* Avoid repeatedly opening the name db.Christian Mollekopf2015-11-26
| | | | | Although, the benchmarks say it doesn't really have an impact on performance.
* Fixed modifications.Christian Mollekopf2015-11-25
| | | | Without this modifications are ignored also in incremental queries.
* Only use the parent index when it's availableChristian Mollekopf2015-11-25
|
* Less noiseChristian Mollekopf2015-11-25
|
* Use Query::parentProperty to express tree queriesChristian Mollekopf2015-11-24
| | | | | That way we don't have to hardcode the parent property, and we can use the property to express non-tree queries as well.
* Separated DomainTypeAdaptorFactoryInterfaceChristian Mollekopf2015-11-21
|
* Fixed buildChristian Mollekopf2015-11-21
|
* Moved facade implementation to cpp fileChristian Mollekopf2015-11-19
|
* Use a queryrunner to execute queries.Christian Mollekopf2015-04-15
The queryrunner is responsible for running queries and keeping them up to date. This is required for self-updating queries. To get this to work properly the ResultProvider/emitter had to be fixed. The emitter now only lives as long as the client holds a reference to it, allowing the provider to detect when it is no longer necessary to keep the query alive (because noone is listening). In the process various lifetime issues have been fixed, that we're caused by lambdas capturing smartpointers, that then extended the lifetime of the associated objects unpredictably.