Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Improve querying the DHT #360

Open
rach-id opened this issue May 10, 2023 · 2 comments
Open

Improve querying the DHT #360

rach-id opened this issue May 10, 2023 · 2 comments
Labels
p2p p2p network related

Comments

@rach-id
Copy link
Member

rach-id commented May 10, 2023

Currently, in a real network, when querying the signatures from the network, this process takes a lot of time, more than 10 minutes to get all the confirms from the network. We need to investigate how to speed up this process.

@rach-id rach-id added the p2p p2p network related label May 10, 2023
@rach-id
Copy link
Member Author

rach-id commented May 15, 2023

Also, sometimes the query signers command miss a signature, which needs to be investigated

@rach-id
Copy link
Member Author

rach-id commented May 19, 2023

Apparently, when querying the DHT using the current query signers commands, we make a new P2P connection and therefore we need to wait for the peer table to populate. Then, when querying for values, it needs to establish more connections to work efficiently.

We can see this behavior when running multiple queries. The first one takes ~7min to get a set of values, while the one after takes less than a minute.

Thus, we should update the query commands and maybe implement them as RPC endpoints for orchestrator/relayer. This way we would be able to have faster queries.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
p2p p2p network related
Projects
None yet
Development

No branches or pull requests

1 participant