Open krhougs opened 3 years ago
There is a scenario that one mining pool have thousands workers running pHost at a time, which rely on the RPC phala.getStorageChanges.
pHost
phala.getStorageChanges
While current implement scans the KVDB on every request, the performance on synching blocks with pHost is unbearable.
Users may migrate to prb to avoid this but it's difficult to make changes on users' existing system, performance enhancement should be applied.
prb
I prefer external cache than build it into the chain node
There is a scenario that one mining pool have thousands workers running
pHost
at a time, which rely on the RPCphala.getStorageChanges
.While current implement scans the KVDB on every request, the performance on synching blocks with
pHost
is unbearable.Users may migrate to
prb
to avoid this but it's difficult to make changes on users' existing system, performance enhancement should be applied.