BarisB
Convex Community2y ago
1 reply
Baris

Does withIndex().order().first() scan all documents?

Hi there, I want to use order("desc").first() to get the maximum number from an indexed number column. This table has more than 16k documents. Does ordering scan all the documents?
Was this page helpful?