GithubHelp home page GithubHelp logo

Comments (3)

hardyjosh avatar hardyjosh commented on August 16, 2024 1

@NanezX I think it makes sense to check the most recent block/timestamp for any fetched data and start from there.

from rain-studio.

NanezX avatar NanezX commented on August 16, 2024

Okay, the cron job has been running since yesterday and the average execution time is not to my liking.

Although the code is functional, it needs optimization as naturally the subgraph data will increase (and we will add more subgraphs in the future).

So the best and logical solution is created a new table on the supabase database, maybe called networks or other name. Here we can store relevant information related for each network that we can use on studio. My first thought of this is the following table:

ID (uuid)* created_at (timestamp)* chainId lastBlockSG interpreterUrlSG
UUID generated Time when the row was added chain Id for the network Last block checked by the cronjob on the the subgraph(s) by this chain ID URL endpoint for interprerter subgraph on the give chain ID

It is very basic and only intended to meet the cronjob requirements, but of course this allow us to add more columns if we need. @hardyjosh

from rain-studio.

NanezX avatar NanezX commented on August 16, 2024

@NanezX I think it makes sense to check the most recent block/timestamp for any fetched data and start from there.

Ok cool, then I'll leave the PR and ticket open to change the code after closing the selection for contracts

from rain-studio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.