What is Nostr?
Cy /
npub1hkd…yuns
2024-12-14 19:21:01
in reply to nevent1q…e5vk

Cy on Nostr: Or, I could... not group by author, and just keep a running count of how many times ...

Or, I could... not group by author, and just keep a running count of how many times an author has popped up. This would mean potentially selecting hundreds of posts from the database that are immediately discarded, and I couldn't use a limit clause, or an offset really. However the first strategy means a separate query per author. Extremely complex and expensive queries would make that slow as balls, but extremely frequent shitposters would make a single query slow as balls, since I have to flip through it looking for the good rows, and the database cannot determine this. I think. Maybe.

What's the sqlite3 function for a running count? :/
Author Public Key
npub1hkdldvynat33kt2za64c6ufz06nhnydvdgwgu6rp6e8ghfggcvnsejyuns