h-REA / hREA

A ValueFlows / REA economic network coordination system implemented on Holochain and with supplied Javascript GraphQL libraries
https://docs.hrea.io
Other
142 stars 15 forks source link

Update internals of `hdk_records` to use `get_optimistic` once implemented #341

Open pospi opened 1 year ago

pospi commented 1 year ago

The docs for hdk::get state that a network request is always performed.

There are various locations in this library, particularly within entry_helpers, where metadata about a just-created entry is fetched from the DHT to be returned to the caller. Using this new method will ensure such actions only talk to the local conductor and are optimised to reduce network requests.