daml/ledger/participant-state
Gerolf Seitz d30b6eb94b
Sandbox: fix excessive memory consumption (#3362)
* Implement proper stream pagination

The previous pagination mechanism for streaming ledger entries was implemented
as a recursive method call with manually concatenating akka Sources.
However, this didn't work properly and resulted in all the subsources being
forced immediately, resulting in parallel requests for all pages
(0-100, 100-200, 200-300, ...) instead of the expected mechanism of loading
the first page and on upstream request (i.e. client requests for more data
over grpc) loading the next page of data.

The current mechanism uses Source.unfoldAsync which makes the paging
mechanism work as expected: sequential loading of pages on demand.

* Serialize and deserialize Transactions outside the SQL Executor

This frees up the SQL Executor threads sooner for other work
and the conversion work only happens on a by need basis when
the consumer requests more data.
2019-11-08 10:25:29 +01:00
..
kvutils Sandbox: fix excessive memory consumption (#3362) 2019-11-08 10:25:29 +01:00
src/main/scala/com/daml/ledger/participant/state/v1 add InternalError to values returned by SubmissionResult (#3331) 2019-11-05 10:44:26 +01:00
BUILD.bazel Fix the import paths of {value,transaction,blindinginfo}.proto (#3312) 2019-11-01 14:54:55 +00:00