Comments (3)
@NanezX I think it makes sense to check the most recent block/timestamp for any fetched data and start from there.
from rain-studio.
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 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)
- Update how the contracts are cached from SG to Supabase HOT 6
- Update contract page to work with latest database changes
- Improve Orderbook deploy experience
- Improve search/selection interpreters
- Improve search/selection for contracts
- Interpreters page
- Fix crash on Docs
- Fix footer for a couple of pages HOT 1
- Issue with deflate function on supabase cron job code
- write help panel for IDE with links to tg dev ecosystem and docs
- Allow arbitrary context on 'no contract' expressions
- Mobile styling
- Design sweep
- Make sure footer looks good on all pages
- Fix hover for small light buttons
- Mobile styles for IDE and Profile pages
- X-browser testing HOT 1
- hook up fork button on formatter and save button on parser in docs
- Organisations context
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rain-studio.