OmniBase questions

Sebastián Sastre ssastre at seaswork.com.ar
Fri Dec 30 14:57:23 UTC 2005


Hi there,
 
    there is any news regarding to File loking issue (at least in windows
OS)?
 
    I have a headless seaside application that gets stuck sometmes because
of it. What should be made to get rid of that dialog?
 
    thanks,
 
Sebastián Sastre
 
 <mailto:ssastre at seaswork.com.ar> ssastre at seaswork.com.ar 
Seaswork 
Special Software Solutions
www.seaswork.com.ar <http://www.seaswork.com.ar/> 
 
Este mensaje y sus adjuntos son confidenciales y de uso exclusivo para el
usuario a quien esta dirigido. Puede contener información amparada por el
secreto profesional.
Si Ud. no es el destinatario especificado no debe copiar, enviar o utilizar
ninguna parte del mismo y/o de sus adjuntos por ningún medio tecnológico.
Las opiniones vertidas son responsabilidad del autor y no son emitidas ni
avaladas por SEASWORK a menos que se indique claramente lo contrario y que
la identidad y autoridad del autor, para comprometer a nuestra empresa,
puedan ser verificados.
No se garantiza la integridad de los mensajes enviados por e-mail ni que los
mismos sean enviados en termino, o que no contengan errores o virus. El
emisor no aceptara responsabilidad por los errores, modificaciones u
omisiones que resulten en el mensaje, bajo la hipótesis de que pudo ser
modificado.
    
 


  _____  

De: squeak-dev-bounces at lists.squeakfoundation.org
[mailto:squeak-dev-bounces at lists.squeakfoundation.org] En nombre de Andrew
Catton
Enviado el: Jueves, 03 de Noviembre de 2005 07:19
Para: The general-purpose Squeak developers list
Asunto: Re: OmniBase questions





On 11/3/05, Pavel Krivanek <squeak1 at continentalbrno.cz
<mailto:squeak1 at continentalbrno.cz> > wrote:

Hi, I've got several questions related to OmniBase usage:

1) File locking on Windows

When I open a database session and process a transaction and then I try
to connect new user, OODBStreamLockedNotification is raised. OmniBase 
then wants a confirmation of "File can not be read because it is locked.
Do you want to try again ?". What is the best default answer? True
causes long delay before the connection of new user. If false is chosen, 
fileIOError should be raised but nothing happens and new connection
works well.



IIRC, the netstyle guys were running into this issue.. what did you guys end
up doing with it? 
 
 

2) Object sharing between transactions

If I'm not wrong, in case I want to modify a database object, I have to 
use transaction with explicit access to database object from the root.
So If I want use the same object in two or more independent
transactions, I cannot identify the object by its direct reference but I
have to use something like primary key or oid, right? How to make it 
more comfortable? Is a way how to identify and use database object
without access from root and searching in collections?


We definitely need to get that OmniSupport code out there.. aside from the
connection pool, we also have "persistent references", which are proxies to
persistent objects that work across transactions.  I've added an OmniSupport
package to SqueakSource, but haven't added any code to it -- the newest
version I can see is in the netstyle repo; I expect it's OK for public
consumption, but I'd rather they published it themselves.  Lukas, I've added
you as a developer so feel free to do so if everything's in order..


3) Index updating

For example I have a collection of events an index by date of event. 
Then I modify an event that was not found by this index (I have no
direct iterator). Do I have to find this event in date index manually,
remove it and then add it again? Is there another way how access to
index record directly? 


If you are using any of the basic indices in OmniBase you will need to be
sure to maintain them somehow (just as you would with, say, a Dictionary).
Of course, you can have some sort of framework for automatically updating
indices on data changes, though OmniBase itself doesn't include this.


Andrew


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20051230/ec9046fc/attachment.htm


More information about the Squeak-dev mailing list