Worth to mention. Skip function still make database scan every skipped object. İf you skip 5000 item and return the next 1 item, database will scan 5001 item.
For a few hundred or thousand objects that won’t be a problem but if you skip above certain level objects, performance can decrease. An alternative for that would be skipping objects based on created at value. Create index for created at field and order by ascending or descending doesn’t matter. Then
bump. anyone with a good answer? Needing this random function as well. Though I could hack one I think, I’m not sure it’s the most efficient way of doing it.