gskril / farcaster-indexer Goto Github PK
View Code? Open in Web Editor NEWSave all data from the Farcaster protocol to Postgres
Save all data from the Farcaster protocol to Postgres
My plan is now to:
yarn run seed
yarn run v1.22.18
warning ../package.json: No license field
$ tsc && node ./dist/helpers/seed.js
Seeding recent registrations from contract logs...
Error inserting registrations {
code: '42501',
details: null,
hint: null,
message: 'new row violates row-level security policy for table "profile"'
}
Seeding profiles from Merkle APIs...
Hello, please add information what hardware specs are needed to run indexer.
Error thrown when backfilling FIDs 308901 - 309000. The job stopped at 71%, so the issue is likely happening somewhere between FID 308970 - 308975.
Currently, if devs fetch a cast from Searchcaster, it returns children with depth 1. Would it be desirable if it returns all the grandkids per fetch? HN and Reddit does this - when users view a post, all the comments of that post gets displayed. The API looks like this: https://hn.algolia.com/api/v1/items/33757484 (notice that the "children" key recursively contains all the replies). Plus, it would be extra nice if it also returns all the ancestors (all the casts from the root thread to the fetched cast, if there's any).
I'm down to help to make this happen.
Backfill with >1 concurrency will seemingly just miss all the links (or some other data type) for a fid(s) but get all casts, reactions, etc from that user.
The user(s) and data type(s) it skips are inconsistent and there are no errors in the logs. It's as if only part of the getFullProfileFromHub()
function is running, or Postgres is somehow missing requests.
Verified by running a backfill with WORKER_CONCURRENCY=5
, then running it again with WORKER_CONCURRENCY=1
and seeing that some tables had rows with newer updated_at
values even though the message timestamp was old.
Thanks to @stephancill for finding the bug by comparing the number of rows in different tables after backfills with different concurrency values.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.