Better HN
topnewbestaskshowjobs
Log inSign up

slavveras

1 karma · joined May 13, 2023 (3y ago) · 1 submissions

Submissions

comment 3y ago · link · parent

Couldn't you also use a materialised view here? Or, alternatively, what about an index on the documents table alone? It might depend on whether your db has a flexible enough indexing system to do what you want, but I don't see why the index would have to span tables since it only needs to depend on the folder id and the document modification time