CLI tool to sync your Markdown to Leaflet
leafletpub atproto cli markdown

fetch publications & docs with listRecords instead of getRepo #7

closed
opened by mackuba.eu

For a large repo like mine, the first phase takes like 20-30 seconds, without any indication of what's going on. And regardless of how big/old someone's repo is, it will almost always be much faster to just paginate through listRecords for pub.leaflet.document and pub.leaflet.document instead of getting the whole repo.

I thought getRepo would be faster based on my previous experience, but that might be biased, because of the size of my repo or specific case I was doing it in. I'll look into it.

Hmm, I guess I might be an outlier, but I think a lot of people very active in the ATProto community will have fairly large repos too. For small repos it might be faster to get a repo, but listRecords will also be fast. For medium+ sized repos I think listRecords wins.

Ok yea i see, that definitely takes too long.

sign up or login to add to the discussion
Labels

None yet.

assignee

None yet.

Participants 2
AT URI
at://did:plc:oio4hkxaop4ao4wz2pp3f4cr/sh.tangled.repo.issue/3m5p5m3rtvc22