DEV Community

Discussion on: It's Prisma Time - Pagination

 
puppo profile image
Luca Del Puppo

Probably if you are using the offset method and you have more filters your where clause can generate problems. In these cases, you need to check the indexes of the tables used in your queries. In the common cases the skip and take handling in the database doesn't generate any problems of the slowness, but the where clause yes.

Thread Thread
 
neeshsamsi profile image
Neesh Samsi

Thanks, that helps a ton, I have no where and just 1 orderBy so Offset is going to be the way I go!