Skip to main content

Problem in RMS

5 replies [Last post]
Anonymous

Hello All,

I am working on an application that uses RMS which saves some critical data
in form of records. Where each record is around 10-12 kb as it has image in
each record saved. The problem that I am facing is that when deleting the
records it takes too much of time.
If I store around 10 such records where each record is of around 10-12 kb
having images stored along with some other data in each record.
The time for deleting the Last record is very high, around 6-7 seconds for
deleting it, while for deleting starting records it hardly takes 50-60
milliseconds.

The point which I observed was, it takes time to close the RMS whereas the
deletion of record is much faster.

For more Information I am having high-end devices as target ,like Motorola
MPX 220,SonyEricsson w800i,s710,z520 etc.

I am facing this problem on all of the devices.
Please give me some workaround and what might be the problem behind this.

Thanks,

Sreejit

--
This message has been scanned for viruses and
dangerous content by OpenProtect(http://www.openprotect.com), and is
believed to be clean.

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Thomas Landspurg

So why not just delete the recordstore?

On 11/28/06, Sreejit Gopinath wrote:
>
> Hello All,
>
> I am working on an application that uses RMS which saves some critical
> data in form of records. Where each record is around 10-12 kb as it has
> image in each record saved. The problem that I am facing is that when
> deleting the records it takes too much of time.
> If I store around 10 such records where each record is of around 10-12 kb
> having images stored along with some other data in each record.
> The time for deleting the Last record is very high, around 6-7 seconds for
> deleting it, while for deleting starting records it hardly takes 50-60
> milliseconds.
>
> The point which I observed was, it takes time to close the RMS whereas the
> deletion of record is much faster.
>
> For more Information I am having high-end devices as target ,like Motorola
> MPX 220,SonyEricsson w800i,s710,z520 etc.
>
> I am facing this problem on all of the devices.
> Please give me some workaround and what might be the problem behind this.
>
>
>
> Thanks,
>
> Sreejit
>
>
>
> --
> This message has been scanned for viruses and
> dangerous content by *OpenProtect* , and is
> believed to be clean.
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the
> body of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".

--
Thomas Landspurg
http://blog.landspurg.net

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Sreejit Gopinath

I guess you took it wrong. When I close the record store after deletion, the
recordStore.closeRecordStore() method takes more time and it bocks the
application execution.

_____

From: A mailing list for KVM discussion [mailto:KVM-INTEREST@JAVA.SUN.COM]
On Behalf Of Thomas Landspurg
Sent: Tuesday, November 28, 2006 1:24 PM
To: KVM-INTEREST@JAVA.SUN.COM
Subject: Re: Problem in RMS

So why not just delete the recordstore?

On 11/28/06, Sreejit Gopinath wrote:

Hello All,

I am working on an application that uses RMS which saves some critical data
in form of records. Where each record is around 10-12 kb as it has image in
each record saved. The problem that I am facing is that when deleting the
records it takes too much of time.
If I store around 10 such records where each record is of around 10-12 kb
having images stored along with some other data in each record.
The time for deleting the Last record is very high, around 6-7 seconds for
deleting it, while for deleting starting records it hardly takes 50-60
milliseconds.

The point which I observed was, it takes time to close the RMS whereas the
deletion of record is much faster.

For more Information I am having high-end devices as target ,like Motorola
MPX 220,SonyEricsson w800i,s710,z520 etc.

I am facing this problem on all of the devices.
Please give me some workaround and what might be the problem behind this.

Thanks,

Sreejit

--
This message has been scanned for viruses and
dangerous content by OpenProtect, and is
believed to be clean.
===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

--
Thomas Landspurg
http://blog.landspurg.net
===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
--
This message has been scanned for viruses and
dangerous content by OpenProtect , and is
believed to be clean.

--
This message has been scanned for viruses and
dangerous content by OpenProtect(http://www.openprotect.com), and is
believed to be clean.

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Robin Chaddock

6-7 seconds for deleting 100-120kb of rms data is extremely fast when compared to many implementations.

For your application to be at-all portable you need to be displaying a loading bar during all I/O operations anyway, this should make a 6-7 second pause completely acceptable. (from a certification point of view)
If 6-7 seconds is unacceptable for some other reason, then I suggest you compress the data before writing it out.
----- Original Message -----
From: Sreejit Gopinath
To: KVM-INTEREST@JAVA.SUN.COM
Sent: Tuesday, November 28, 2006 8:13 AM
Subject: Re: Problem in RMS

I guess you took it wrong. When I close the record store after deletion, the recordStore.closeRecordStore() method takes more time and it bocks the application execution.

------------------------------------------------------------------------------

From: A mailing list for KVM discussion [mailto:KVM-INTEREST@JAVA.SUN.COM] On Behalf Of Thomas Landspurg
Sent: Tuesday, November 28, 2006 1:24 PM
To: KVM-INTEREST@JAVA.SUN.COM
Subject: Re: Problem in RMS

So why not just delete the recordstore?

On 11/28/06, Sreejit Gopinath wrote:

Hello All,

I am working on an application that uses RMS which saves some critical data in form of records. Where each record is around 10-12 kb as it has image in each record saved. The problem that I am facing is that when deleting the records it takes too much of time.
If I store around 10 such records where each record is of around 10-12 kb having images stored along with some other data in each record.
The time for deleting the Last record is very high, around 6-7 seconds for deleting it, while for deleting starting records it hardly takes 50-60 milliseconds.

The point which I observed was, it takes time to close the RMS whereas the deletion of record is much faster.

For more Information I am having high-end devices as target ,like Motorola MPX 220,SonyEricsson w800i,s710,z520 etc.

I am facing this problem on all of the devices.
Please give me some workaround and what might be the problem behind this.

Thanks,

Sreejit

--
This message has been scanned for viruses and
dangerous content by OpenProtect, and is
believed to be clean. =========================================================================== To unsubscribe, send email to listserv@java.sun.com and include in the body of the message "signoff KVM-INTEREST". For general help, send email to listserv@java.sun.com and include in the body of the message "help".

--
Thomas Landspurg
http://blog.landspurg.net =========================================================================== To unsubscribe, send email to listserv@java.sun.com and include in the body of the message "signoff KVM-INTEREST". For general help, send email to listserv@java.sun.com and include in the body of the message "help".
--
This message has been scanned for viruses and
dangerous content by OpenProtect, and is
believed to be clean.

--
This message has been scanned for viruses and
dangerous content by OpenProtect, and is
believed to be clean. =========================================================================== To unsubscribe, send email to listserv@java.sun.com and include in the body of the message "signoff KVM-INTEREST". For general help, send email to listserv@java.sun.com and include in the body of the message "help".

________________________________________________________________________
E-mail is an informal method of communication and may be subject to data corruption, interception and unauthorised amendment for which I-play, a trading name of Digital Bridges Ltd will accept no liability. Therefore, it will normally be inappropriate to rely on information contained on e-mail without obtaining written confirmation.

This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden.

(C) 2005. I-play is a trademark and trading name of Digital Bridges Limited. All Rights Reserved.
________________________________________________________________________
This message has been checked for all known viruses by the
MessageLabs Virus Scanning Service. For further information visit
http://www.messagelabs.com/stats.asp

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Thomas Landspurg

How many record deletion are you doing before?

Because this seems to be linked also to one problem that I've raised
before: on most of the implementation, deleted records are never freed.
What seems to happen, on SonyEricsson for instance, is that there is an
attempt to garbage collect these records from time to time, and this then
block all the phone.
On Nokia, there is not such attempt, so yes, the phone is not blocked, the
the recordstore keep on growing...

On 11/28/06, Robin Chaddock wrote:
>
> 6-7 seconds for deleting 100-120kb of rms data is extremely fast when
> compared to many implementations.
>
> For your application to be at-all portable you need to be displaying a
> loading bar during all I/O operations anyway, this should make a 6-7 second
> pause completely acceptable. (from a certification point of view)
> If 6-7 seconds is unacceptable for some other reason, then I suggest you
> compress the data before writing it out.
>
> ----- Original Message -----
> *From:* Sreejit Gopinath
> *To:* KVM-INTEREST@JAVA.SUN.COM
> *Sent:* Tuesday, November 28, 2006 8:13 AM
> *Subject:* Re: Problem in RMS
>
> I guess you took it wrong. When I close the record store after deletion,
> the recordStore.closeRecordStore() method takes more time and it bocks the
> application execution.
>
>
>
>
> ------------------------------
>
> *From:* A mailing list for KVM discussion [mailto:
> KVM-INTEREST@JAVA.SUN.COM] *On Behalf Of *Thomas Landspurg
> *Sent:* Tuesday, November 28, 2006 1:24 PM
> *To:* KVM-INTEREST@JAVA.SUN.COM
> *Subject:* Re: Problem in RMS
>
>
>
> So why not just delete the recordstore?
>
> On 11/28/06, *Sreejit Gopinath* wrote:
>
> Hello All,
>
> I am working on an application that uses RMS which saves some critical
> data in form of records. Where each record is around 10-12 kb as it has
> image in each record saved. The problem that I am facing is that when
> deleting the records it takes too much of time.
> If I store around 10 such records where each record is of around 10-12 kb
> having images stored along with some other data in each record.
> The time for deleting the Last record is very high, around 6-7 seconds for
> deleting it, while for deleting starting records it hardly takes 50-60
> milliseconds.
>
> The point which I observed was, it takes time to close the RMS whereas the
> deletion of record is much faster.
>
> For more Information I am having high-end devices as target ,like Motorola
> MPX 220,SonyEricsson w800i,s710,z520 etc.
>
> I am facing this problem on all of the devices.
> Please give me some workaround and what might be the problem behind this.
>
>
>
> Thanks,
>
> Sreejit
>
>
>
>
> --
> This message has been scanned for viruses and
> dangerous content by *OpenProtect, and is
> believed to be clean.
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the
> body of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help". *
>
> *
>
>
> --
> Thomas Landspurg
> http://blog.landspurg.net===============================================...
> To unsubscribe, send email to listserv@java.sun.com and include in the
> body of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
> --
> This message has been scanned for viruses and
> dangerous content by OpenProtect , and is
> believed to be clean. *
>
> --
> This message has been scanned for viruses and
> dangerous content by *OpenProtect* , and is
> believed to be clean.
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the
> body of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
>
>
> ________________________________________________________________________
> E-mail is an informal method of communication and may be subject to data
> corruption, interception and unauthorised amendment for which I-play, a
> trading name of Digital Bridges Ltd will accept no liability. Therefore, it
> will normally be inappropriate to rely on information contained on e-mail
> without obtaining written confirmation.
>
> This e-mail may contain confidential and/or privileged information. If you
> are not the intended recipient (or have received this e-mail in error)
> please notify the sender immediately and destroy this e-mail. Any
> unauthorized copying, disclosure or distribution of the material in this
> e-mail is strictly forbidden.
>
> (C) 2005. I-play is a trademark and trading name of Digital Bridges
> Limited. All Rights Reserved.
> ________________________________________________________________________
> This message has been checked for all known viruses by the
> MessageLabs Virus Scanning Service. For further information visit
> http://www.messagelabs.com/stats.asp
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the
> body of the message "signoff KVM-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".
>

--
Thomas Landspurg
http://blog.landspurg.net

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Sreejit Gopinath

There can be n no. of records. Of which at a time the user can delete any
one.. So I performed this by passing the record id .to the function
recordStore.deleteRecord(recorded). And it's true that the deleted records
are never freed. So for this after every tenth deletion I perform a fresh
RMS operation .i.e. storing the entire data to a new RMS and deleting the
previous one.

And now I ve found that deleting the whole RMS and copying it to a new one
takes less time than deleting a record and then closing the RMS . SO now
what I am doing is copying the data from the RMS to a new RMS except the one
to be deleted and then deleting the previous file. This takes some time but
the time is same if I delete the 1st record or the 40th one and also the
time has reduced when I delete the 40th record as compared to previous
timing.

_____

From: A mailing list for KVM discussion [mailto:KVM-INTEREST@JAVA.SUN.COM]
On Behalf Of Thomas Landspurg
Sent: Tuesday, November 28, 2006 3:52 PM
To: KVM-INTEREST@JAVA.SUN.COM
Subject: Re: Problem in RMS

How many record deletion are you doing before?

Because this seems to be linked also to one problem that I've raised
before: on most of the implementation, deleted records are never freed.
What seems to happen, on SonyEricsson for instance, is that there is an
attempt to garbage collect these records from time to time, and this then
block all the phone.
On Nokia, there is not such attempt, so yes, the phone is not blocked, the
the recordstore keep on growing...

On 11/28/06, Robin Chaddock <
robin.chaddock@iplay.com> wrote:

6-7 seconds for deleting 100-120kb of rms data is extremely fast when
compared to many implementations.

For your application to be at-all portable you need to be displaying a
loading bar during all I/O operations anyway, this should make a 6-7 second
pause completely acceptable. (from a certification point of view)

If 6-7 seconds is unacceptable for some other reason, then I suggest you
compress the data before writing it out.

----- Original Message -----

From: Sreejit Gopinath

To: KVM-INTEREST@JAVA.SUN.COM

Sent: Tuesday, November 28, 2006 8:13 AM

Subject: Re: Problem in RMS

I guess you took it wrong. When I close the record store after deletion, the
recordStore.closeRecordStore() method takes more time and it bocks the
application execution.

_____

From: A mailing list for KVM discussion [mailto:KVM-INTEREST@JAVA.SUN.COM]
On Behalf Of Thomas Landspurg
Sent: Tuesday, November 28, 2006 1:24 PM
To: KVM-INTEREST@JAVA.SUN.COM
Subject: Re: Problem in RMS

So why not just delete the recordstore?

On 11/28/06, Sreejit Gopinath < sreejit@lambenttek.com
> wrote:

Hello All,

I am working on an application that uses RMS which saves some critical data
in form of records. Where each record is around 10-12 kb as it has image in
each record saved. The problem that I am facing is that when deleting the
records it takes too much of time.
If I store around 10 such records where each record is of around 10-12 kb
having images stored along with some other data in each record.
The time for deleting the Last record is very high, around 6-7 seconds for
deleting it, while for deleting starting records it hardly takes 50-60
milliseconds.

The point which I observed was, it takes time to close the RMS whereas the
deletion of record is much faster.

For more Information I am having high-end devices as target ,like Motorola
MPX 220,SonyEricsson w800i,s710,z520 etc.

I am facing this problem on all of the devices.
Please give me some workaround and what might be the problem behind this.

Thanks,

Sreejit

--
This message has been scanned for viruses and
dangerous content by OpenProtect , and is
believed to be clean.
===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

--
Thomas Landspurg
http://blog.landspurg.net
===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
--
This message has been scanned for viruses and
dangerous content by OpenProtect , and is
believed to be clean.

--
This message has been scanned for viruses and
dangerous content by OpenProtect, and is
believed to be clean.
===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

________________________________________________________________________
E-mail is an informal method of communication and may be subject to data
corruption, interception and unauthorised amendment for which I-play, a
trading name of Digital Bridges Ltd will accept no liability. Therefore, it
will normally be inappropriate to rely on information contained on e-mail
without obtaining written confirmation.

This e-mail may contain confidential and/or privileged information. If you
are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden.

(C) 2005. I-play is a trademark and trading name of Digital Bridges Limited.
All Rights Reserved.
________________________________________________________________________
This message has been checked for all known viruses by the
MessageLabs Virus Scanning Service. For further information visit
http://www.messagelabs.com/stats.asp

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

--
Thomas Landspurg
http://blog.landspurg.net
===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
--
This message has been scanned for viruses and
dangerous content by OpenProtect , and is
believed to be clean.

--
This message has been scanned for viruses and
dangerous content by OpenProtect(http://www.openprotect.com), and is
believed to be clean.

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]