Open deptyped opened 5 months ago
For example, to iterate over all users:
const users = await prisma.user .paginate() .toStream({ limit: 25, // batch size }); for await (const user of users) { console.log(user); // {id: 1, name: 'John Doe'} }
https://github.com/etabits/prisma-cursorstream
For example, to iterate over all users: