12ore fa
The biggest Solana news today wasn’t Grayscale or Western Union It was @heliuslabs making 493 billion transactions searchable by account at Web2 speed IBRL, from writes to reads 🏎️
earlier today @heliuslabs launched a new RPC method, getTransactionsForAddress (gTFA) let's talk about how it works under the hood solana transactions typically reference 6-10 accounts (up to ~256) when you query "get me the history of account X", you are asking the RPC to scan transactions and find the ones that include X in their list of accounts this is essentially trying to find a needle in a haystack you can't simply add a standard index on the "accounts" array at scale – databases struggle with indexing variable length arrays the solution: we built our own index, with one entry per unique (transaction, account) pair this is no small feat – there are ~493 billion transactions (and growing) our index currently holds over 2.3 trillion (!) rows despite the size, the P50 lookup time is ~8ms under production load and we have many other indices to power lookups by slot, time, status, etc all running on purpose-built bare metal hosts with petabytes of top-of-the line NVMEs, replicated across multiple regions tldr – we suffered so you don't have to enjoy
29.256
256
Il contenuto di questa pagina è fornito da terze parti. Salvo diversa indicazione, OKX non è l'autore degli articoli citati e non rivendica alcun copyright sui materiali. Il contenuto è fornito solo a scopo informativo e non rappresenta le opinioni di OKX. Non intende essere un'approvazione di alcun tipo e non deve essere considerato un consiglio di investimento o una sollecitazione all'acquisto o alla vendita di asset digitali. Nella misura in cui l'IA generativa viene utilizzata per fornire riepiloghi o altre informazioni, tale contenuto generato dall'IA potrebbe essere impreciso o incoerente. Leggi l'articolo collegato per ulteriori dettagli e informazioni. OKX non è responsabile per i contenuti ospitati su siti di terze parti. Gli holding di asset digitali, tra cui stablecoin e NFT, comportano un elevato grado di rischio e possono fluttuare notevolmente. Dovresti valutare attentamente se effettuare il trading o detenere asset digitali è adatto a te alla luce della tua situazione finanziaria.