Use cursor-based pagination for large datasets instead of .collect(). Prevents performance issues and provides smooth infinite scroll.