1

What is the algorithmic complexity of a getProgramAccounts() call?
Do the Solana nodes store all the accounts ever created? Do the nodes have to scan the entire ledger? Are there any indexes in place?
Do the length or memcmp filters reduce the volume of data that needs to be scanned?
Is it distributed across multiple nodes or does only the RPC node handle the query?

As the size of the ledger increases, would it be increasingly slower to do a getProgramAccounts() call?

4
  • please restrict each post to one question. the lack of focus reduces quality
    – trent.sol
    Commented Jul 16, 2022 at 18:32
  • @trent.sol could you suggest which parts I shall remove?
    – itsfarseen
    Commented Jul 17, 2022 at 2:12
  • 1
    everything with a question mark could theoretically be elaborated to its own post
    – trent.sol
    Commented Jul 17, 2022 at 16:21
  • Just want to add getProgramAccounts turned out to be a pretty heavy call.
    – Ake
    Commented Dec 28, 2023 at 0:29

0