Skip to content

Commit

Permalink
Define cursor in the README
Browse files Browse the repository at this point in the history
  • Loading branch information
afair committed Jun 11, 2014
1 parent f21ee8a commit 359bb5b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
PostgreSQLCursor extends ActiveRecord to allow for efficient processing of queries
returning a large number of rows, and allows you to sort your result set.

In PostgreSQL, a
[cursor](http://www.postgresql.org/docs/9.4/static/plpgsql-cursors.html)
runs a query, from which you fetch a block of
(say 1000) rows, process them, and continue fetching until the result
set is exhausted. By fetching a smaller chunk of data, this reduces the
amount of memory your application uses and prevents the potential crash
of running out of memory.

Version 0.5.0 has been refactored to install more smoothly into ActiveRecord.
It supports Rails and ActiveRecord 3.2.x and up.

Expand Down

0 comments on commit 359bb5b

Please sign in to comment.