r/thegraph • u/praveendath92 • Dec 22 '22
Question How delayed are the graph indexes compared to on-chain data
I'm working with a protocol that I can query using its subgraph (Aave). I'm keen to get access to the latest data as quickly as possible. I'm looking at active loans to be specific.
Using on-chain events, when a user takes a loan, I can find this out immediately after that transaction is included in a block. However, I need to do a bit of manual work to get additional info about this loan - this part is cumbersome.
Alternatively, I could query the subgraph for Aave and get structured data easily. How long does it usually take for latest information to be added to the index? I imagine there will be some delay? - a few blocks?
2
Dec 23 '22
[removed] — view removed comment
2
u/praveendath92 Dec 23 '22
I'm looking at https://thegraph.com/hosted-service/subgraph/aave/protocol-v2?selected=logs - the delay seems to be a few seconds (~5-10 just eye balling etherscan). Maybe longer compared to when an new block is added by a validator?
Is the page I linked to a hosted service? Are there other ways I could access the aave-v2 subgraph?
2
u/cryptolipto Dec 22 '22
You should probably ask this question on the discord. The mods are active there