linera-io / linera-protocol

Main repository for the Linera protocol
Apache License 2.0
112 stars 94 forks source link

Implement `pre_load`/ `post_load`for the views. #2213

Open MathieuDutSik opened 2 days ago

MathieuDutSik commented 2 days ago

Motivation

The loading of the views leads to a flurry of independent read_value_bytes which strain the storage. This PR groups the access into a single query.

Proposal

The following was done:

Next steps:

Test Plan

The CI of the view is already challenging enough and do not need to be expanded.

Release Plan

This should be documented as it is an API change.

Links