daml/ledger-service
Stephen Compall c0c2a59275
hybrid database-then-gRPC websocket query (#8226)
* group database queries while still providing the matchedQueries part of the event

* SQL query for multiquery websocket request all at once

* fetchAndPersist responds with a single bookmark

* unify connection imports

* convert DB results to domain, reassociate with proper query indices

* reassociate multiple matches with proper query indices

* make overlap more likely in testing overlap

* simpler matchedQueries merging for multi-query case

* integrate DB query with metadata-ful StreamQuery's

* expose daoAndFetch; better insertDeleteStepSource doc

* more efficient query path for contract key streams

* missed LogHandler

* persist resolved template IDs; glue the prefiltered set into the stream

* ticks and phantom removal need the state from the ACS

* compile SQL queries for query language predicates on WS

- wrong matchedQueries order

* harmonize order of ACS-vector and Positives

* misc compilation conversions

* WebsocketServicePostgresInt mixin

* update (C) date

* test websocket queries under postgres

* looking for new way to compile queries with proper matchedQueries offsets

* model that querying without matchedQueries requires only one SQL query

* SQL path for contract key streams

* nondeterminism

* fix 3 fetch tests with SQL syntax

* nondeterminism mk 2

* fix multi-party query tests by dealing with nondeterminism properly

* temp logs to track down the contract duplication

* match new scalafmt from #8437

* remove completed TODOs

* add changelog

CHANGELOG_BEGIN
- [JSON API] If the JDBC query store is enabled, it will be used to optimize
  Websocket queries as well as the previously-supported synchronous queries.
  See `issue #8226 <https://github.com/digital-asset/daml/pull/8226>`__.
CHANGELOG_END

* fix up matchedQueries indices

* complete the fast path for by-id queries

* remove AS c

- suggested by @cocreature; thanks

* remove temporary debugging logs

- suggested by @cocreature; thanks
2021-01-14 10:01:17 -05:00
..
cli-opts Upgrade scalafmt and enable trailing commas (#8437) 2021-01-09 11:37:37 +01:00
db-backend hybrid database-then-gRPC websocket query (#8226) 2021-01-14 10:01:17 -05:00
http-json hybrid database-then-gRPC websocket query (#8226) 2021-01-14 10:01:17 -05:00
http-json-perf Upgrade scalafmt and enable trailing commas (#8437) 2021-01-09 11:37:37 +01:00
http-json-testing Upgrade scalafmt and enable trailing commas (#8437) 2021-01-09 11:37:37 +01:00
jwt Upgrade scopt to 4.0.0 (#8466) 2021-01-11 21:23:02 +01:00
lf-value-json Upgrade scalafmt and enable trailing commas (#8437) 2021-01-09 11:37:37 +01:00
utils Upgrade scalafmt and enable trailing commas (#8437) 2021-01-09 11:37:37 +01:00