on 2011 Aug 29 8:34 AM
Hi, on-line documentation for ConfigPersistent interface responsible for setting database store options, like: setWriteAdEnd or setShadowPaging has a comment: “This method has no effect on UltraLite databases running on Android smartphones”. So, what persistent store configurations are available for Ultralite on Android?
Thansk
Request clarification before answering.
The defaults are supposed to be appropriate for most circumstances, so you should not have to pay much attention to the Configuration Object options until you wish to tune performance or address security issues. I typically use
ConfigFileAndroid config = DatabaseManager.createConfigurationFileAndroid(dbf, context);
I would say the ones of most importance are:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And I'll add further:
the cache is dynamically sized, so you shouldn't have to worry about that
the page size only needs to be changed if you have large rows which don't fit on 4k pages (the default) -- you'll know if this is the case because you'll receive an error to that effect on insert; sometimes applications can perform better with a smaller page size, but as Tom said that's a minor performance tuning issue
User | Count |
---|---|
52 | |
6 | |
5 | |
5 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.