main logo
Subject: Re: 351 again
Author: Robert Brenstein
Posted: 2002/11/29 12:42:17
 
View Entire Thread
New Search


>on 11/29/02 6:23 PM, Gunnar Swan at GunnarSwan AT PracticeToPass .DO.T com wrote:
>
>> Opening database via CGI implies multi-user ?
>> If more than one CGI process open DB, then there are two open
>> instances of DB.
>
>> I don't think Valentina allows this
>
>No Gunnar,
>
>If do things correctly, and at first check if exists a db object with the
>same name then all will works fine. We have this in Valentina for Websiphon
>And now we do this in Valentina for PHP.
>
>I just not remember if VXCMD has such function.
>
>Robert, how you open db second time ?
>Check that on second time you get the SAME dbRef.
>
>May be I have made this correctly in VXCMD also...
>

Hm, I do not open the db multiple times. The cgi opens it when
launching and keeps it open all the time. The cgi handles multiple
users. The handling time is minimal since users change no more than a
few fields at a time and the data size is really small. I don't think
that MetaCard does even any multithreading but even that should not
be a problem. No two users ever write to the same record -- the
access is exclusive.

I refer to db by name not ref in all calls. I remember there was a
reason for that but don't recall why anymore. Should I switch to ref?

Robert
 
©2002 Robert Brenstein
<-- Prior Message New Search Next Message -->