You can also use setForwardOnly() to make some queries faster.

Regards,
Marc