Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Optimize

 
Isaias C. Barroso
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
Knows anybody how to increase performance on lookup routines with RMS?
Thanks
 
Lilac Ezer
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Smart Ticket application (J2ME Blueprints) has some decent design patterns related to RMS. Since you are storing unsorted binary data, your record filter needs to read some part of that data from every record to be able to select the appropriate records. You need to really think about the order your serialized data is stored, and use the smallest datatypes you can for searchable fields. In Smart Ticket, there is a single RMS datastore that holds all the data (of different types of information), and another datastore called Index which is used to look up data by type, and references the recordId of the corresponding data row. I think this is similar to the concept of unclustered indexes in RDBMS to look up data.
To optimize RMS calls in your application, you may also want to perform data operations in separate threads (if appropriate), or buffer/flush search results to the screen as they are found.
I'd be interested in hearing what other patterns j2me developers have implemented for dealing with RMS.
Lilac Ezer
www.codealloy.com
 
Isaias C. Barroso
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thanks by response, really is very good has patterns for J2ME, i will go implement this pattern in my application.
if i get more information about this i will post here ok?!

Thanks
Isa´┐Żas
 
Michael Yuan
author
Ranch Hand
Posts: 1427
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For more about patterns in Smart Ticket, check out our article on Sun wireless Java site:
End-to-End J2ME Application Development by Example - Introducing Smart Ticket
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic