Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Highlighted
Contributor
Posts: 14
Registered: ‎03-29-2012
My Device: bold 9700
My Carrier: Airtel
Accepted Solution

maximum size of BufferedCursor

Hi

 From what I understand from this..

http://www.blackberry.com/developers/docs/5.0.0api/net/rim/device/api/database/BufferedCursor.html

 

Note that using the buffered cursor may throw an OutOfMemoryError if it is used with huge data queries.

 

Can I know what is the definition of "HUGE".

Else, can nayone tell me the range of number of entries that can be stored in BufferedCursor without any exception.

 

Regards

 

BlackBerry Development Advisor
Posts: 15,753
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: maximum size of BufferedCursor

This is a cumulative value based on all your SQLite queries.  From this page:  https://bdsc.webapps.blackberry.com/java/documentation/ww_java_os_features/NITR_7_0_1970852_11.html

 

 

 

The amount of RAM available to an SQLite database for storing internal data structures for schemas and transactions has increased (in 7.0) to 16 MB (from 5 MB in 6.0). A query can now be up to 1 MB. In BlackBerry Java SDK 6.0, the query length limit was 4 KB. The file handle limit has increased to 64, allowing you to open up to 56 databases at the same time in In BlackBerry Java SDK 7.0.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Contributor
Posts: 14
Registered: ‎03-29-2012
My Device: bold 9700
My Carrier: Airtel

Re: maximum size of BufferedCursor

Thank you for your answer