13 小时前
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 🏎️
15 小时前
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
2.93万
256
本页面内容由第三方提供。除非另有说明,欧易不是所引用文章的作者,也不对此类材料主张任何版权。该内容仅供参考,并不代表欧易观点,不作为任何形式的认可,也不应被视为投资建议或购买或出售数字资产的招揽。在使用生成式人工智能提供摘要或其他信息的情况下,此类人工智能生成的内容可能不准确或不一致。请阅读链接文章,了解更多详情和信息。欧易不对第三方网站上的内容负责。包含稳定币、NFTs 等在内的数字资产涉及较高程度的风险,其价值可能会产生较大波动。请根据自身财务状况,仔细考虑交易或持有数字资产是否适合您。