[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xml-server] Re: PDOM implementation



I think in IPSI u need to do locking yourself,
using Java synchronized block ...

Eric van der Vlist wrote:

> Hi Zvi,
>
> That's also something I am trying to figure out...
>
> > 1. Transactions
> >
> > IPSI PDOM have only write transaction ...
> >
> > it modifies pages of nodes in memory,
> > and commit method - flushes only modified pages back to disk.
> >
> > They don't have read-only transactions,
> > so when one thread modifies in memory pages,
> > other thread can read it before commit ...
>
> What do you mean ?
> Don't they lock the pages or objects they are updating ?
> What's happening is there are 2 concurrent updates on the same objects ?
>
> I would also prefer to have some versioning : you lock the nodes you'll
> update, you prepare a set of updated nodes from a copy of the existing
> nodes and you replace the old ones by the new ones when you "commit"...
>
> Eric
>
> --
> ------------------------------------------------------------------------
> Eric van der Vlist                                              Dyomedea
>
> http://www.dyomedea.com                          http://www.ducotede.com
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------
> Java or juggling?.  Everybody learns something at Learn2.com.  Where
> you'll find thousands of free 2torials, affordable online courses, and
> useful tips for everyday life.  http://clickhere.egroups.com/click/964
>
> eGroups.com home: http://www.egroups.com/group/xml-server
> http://www.egroups.com - Simplifying group communications

--
-------------------------------------------------
Zvi Avraham, Senior Software Engineer
NetManage Inc., Visual Connectivity Division
http://www.netmanage.com/products/visual_conn.asp