Also, Cayenne caches 20 PKs (by default), but it increments them by 1
until the cache is exhausted and then it gets more PKs. If you are
seeing increments by 20, it sounds like you are starting and stopping
your application repeatedly (say, while developing). Cayenne doesn't
return unused PKs when an application terminates, so you'd essential
"blow" those PKs. In a production application (long-running), you would
see increments by 1. That being said, you can adjust how my PKs are
cached (for production, you definitely want more than 1 at a time).
/dev/mrg
-----Original Message-----
From: news [mailto:new..ea.gmane.org] On Behalf Of Ahmed Mohombe
Sent: Sunday, January 01, 2006 4:29 PM
To: cayenne-use..bjectstyle.org
Subject: Re: How to change the auto pk increment to 1?
Thank you very much for the informative response.
Ahmed.
This archive was generated by hypermail 2.0.0 : Mon Jan 02 2006 - 09:01:31 EST