Is LockedSet local or process set?
Rick Faber (10/29/08 1:15PM)
Julio Carneiro (10/31/08 8:25AM)
Rick Faber (10/29/08 1:15 PM)
In 4D 2004 Server/Client, is LockedSet (e.g., created after a DELETE
SELECTION) a local set or a process set?
--
Rick
Richard L. Faber, Ph.D.
rickfaber@...
Julio Carneiro (10/31/08 8:25 AM)
Pat,
Let me complement what Scott pointed out.
'local' or 'client-side' sets (those named $xxx plus UserSet) versus
'server-side' sets (those not named $xxx) only indicates where the set
is stored. That has nothing to do with scope or visibility.
All those sets are considered "process sets", that is they are only
visible to the process that created them. Thus each client process
would have its own LockedSet only visible to itself.
The storage location for sets (client vs server) is a performance
issue. When you do a Use set("UserSet") the set bitmap must be sent to
the server in order for it to assemble the record selection. While a
Use set("LockedSet") would be entirely executed on the server as the
set bitmap is held there.
Inter-process sets, those named <>xxxxx, are also server-side sets but
those are inter-process in scope. Those are visible to all processes
running on a client. Much like process and interprocess variables.
Thus a short answer to the original question, LockedSet is a server-
side process set.
hth
julio
On Oct 31, 2008, at 7:05 AM, Pat Bensky wrote:
Each process on each client must have its own LockedSet, surely - so
why are
they stored on the server rather than on the client?
Pat
2008/10/31 Scott Gelvin <scott@...
Rick,
I think others have answered your question, but I want to come at it
differently.
There is "process" vs. "interprocess" -- how many processes can see
the
set.
There is "client-side" (a.k.a. "local") vs. "server-side" -- which
machine's memory contains the set.
The LockedSet is a server-side process set.
Scott Gelvin
Footprints, Inc.
4D specialists since 1987
On Oct 29, 2008, at 11:15 AM, Rick Faber wrote:
In 4D 2004 Server/Client, is LockedSet (e.g., created after a DELETE
SELECTION) a local set or a process set?
--
Rick
Richard L. Faber, Ph.D.
rickfaber@...
Reply to this message
Summary created 10/31/08 at 8:50AM by Intellex Corporation
Comments welcome at: feedback@intellexcorp.com