2 ms·
Yup. But even that takes a long time to run in Postgres if you got millions of rows. I usually run User.last.id - User.first.id, and that usually gives me the #
by AznHisoka 13y ago
Yup. But even that takes a long time to run in Postgres if you got millions of rows. I usually run User.last.id - User.first.id, and that usually gives me the # of rows (give or take)