| Author |
Reuse of unique keys in cacha situation.
|
Ixus See
Ranch Hand
Joined: Jul 17, 2011
Posts: 160
|
|
if during deletion, I choose to set the uniqueKey to recNo delete;
would I reuse the uniqukey instantly on my next creation.
would it cause any problem?
|
 |
Sean Keane
Ranch Hand
Joined: Nov 03, 2010
Posts: 581
|
|
|
People have reused deleted record numbers, you should be aware of this from the plenty of threads about it, just search . Is not clear that reusing deleted record numbers would not cause a problem when implemented correctly?
|
SCJP (1.4 | 5.0), OCJP (6.0), OCMJD
|
 |
Roel De Nijs
Bartender
Joined: Jul 19, 2004
Posts: 4355
|
|
|
I reused deleted record numbers, did not have any issue with it. But if you don't feel comfortable with it, just don't do it. It's not a must requirement, so you are not required too.
|
SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
|
 |
Roberto Perillo
Bartender
Joined: Dec 28, 2007
Posts: 2212
|
|
Howdy, Ixus!
I too chose to reuse deleted entries.
Ixus See wrote:if during deletion, I choose to set the uniqueKey to recNo delete;
Champ, I don't get... what is this uniqueKey that you talk about?
|
Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
|
 |
Ixus See
Ranch Hand
Joined: Jul 17, 2011
Posts: 160
|
|
Roberto Perillo wrote:Howdy, Ixus!
I too chose to reuse deleted entries.
Ixus See wrote:if during deletion, I choose to set the uniqueKey to recNo delete;
Champ, I don't get... what is this uniqueKey that you talk about?
next usable key = recNo
|
 |
Sean Keane
Ranch Hand
Joined: Nov 03, 2010
Posts: 581
|
|
Ixus See wrote:next usable key = recNo
You should try leave coding to your .java files and use correctly structured English when writing in forums - make an effort . As the saying goes "you get what you give" - if you put in very little effort with writing your posts then you shouldn't expect people to put much effort into reading or replying to them.
Similarly with problems you are trying to solve, if you don't put much effort into solving them yourself then you shouldn't expect others to either.
|
 |
Roel De Nijs
Bartender
Joined: Jul 19, 2004
Posts: 4355
|
|
Sean Keane wrote:You should try leave coding to your .java files and use correctly structured English when writing in forums - make an effort  . As the saying goes "you get what you give" - if you put in very little effort with writing your posts then you shouldn't expect people to put much effort into reading or replying to them.
Similarly with problems you are trying to solve, if you don't put much effort into solving them yourself then you shouldn't expect others to either.
I completely agree, couldn't have said it better (also because my English is not that good ) It totally deserves +1
|
 |
 |
|
|
subject: Reuse of unique keys in cacha situation.
|
|
|