Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix memory leak in active record cursor
This commit patches the active record cursor implementation so that the queries emitted by `relation.to_a` in `next_batch` are never cached. This makes sense because it is a waste to cache results of queries like `SELECT ... WHERE id > ... LIMIT ...` in an enumerator that is only moving forward. The `uncached` interface I make use of in this commit was introduced by rails/rails#28867 under a similar context.
- Loading branch information