How to apply Fetch Size in queries using Object Mapping?
31 views
Skip to first unread message
Angela Sun
unread,
Apr 27, 2015, 3:59:49 PM4/27/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to java-dri...@lists.datastax.com
I'm trying to use Accessor annotated interface to do queries, which is part of the Object Mapping API. Would it be possible to apply something similar to Set Fetch Size in Prepared Statement?
Thanks,
Angela
Olivier Michallat
unread,
May 12, 2015, 4:07:51 AM5/12/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to java-dri...@lists.datastax.com
Hi Angela,
One thing you can do is have your method return a Statement, on which you can set the fetch size before executing it. However you lose the ability to map your query results, so I agree that the mapper should have better support for this.
This is quite similar to JAVA-540, so I'm adding a comment there to remember to address fetch size.