In the video here damus notedeck loads from nostrdb using a standard query. It caches the note primary keys in a long list. Every time you open the thread it looks only for the newest notes since the last one. This means notedeck can load everything, even if its millions of notes