Re: Interconnection Delay



joe.no_junk@xxxxxxxxx schrieb:
Are c1 and c2 used in the same thread, guaranteeing
that c1's calls are returned before c2 is used?
Are these JDBC connections? Are they in the default
autoCommit(true) mode. If so, there is no reason/excuse
for a query from c2 to miss anything c1 has done.
Joe

If c1 and c2 were pointing to different databases
which are synchronized by replication, than this
would be a reason/excuse.
http://blog.mobocracy.net/2008/09/mysql-multimaster-replication-in.html

But I observed delays also for a single database
without replication. The effect is reproducable
with JET and a .mdb database.

A reason/excuse could be the particular transaction
memory model that JET used. Wikipedia says:

... Until the transaction is committed, changes are
made only in memory and not actually written
to disk. ...

... With ODBC's in-memory policy, transactions also
allow for many updates to a record to occur
entirely within memory, with only one expensive
disk write at the end. ...

http://en.wikipedia.org/wiki/Microsoft_Jet_Database_Engine#Transaction_processing

Could it be that I was using a JDBC-ODBC connection?
And the memory policy was on?

Do other database systems also have this feature?
Maybe in a much smaler time scale than 100ms?

Bye
.



Relevant Pages

  • Re: Looking for super fast CSV parser
    ... My findings show that DISQLite3 can insert the 20 ... It uses the latest DISQLite3 Pro as database engine. ... GB memory, 5200 rpm hard drive, WinXP SP2. ... a new transaction started every TRANSACTION_DELTA inserts. ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Recordset.AddNew and the recordset objects data retaining
    ... The statement you make about the individual updates not hitting the database ... to do with the updates being in a transaction but rather on whether you specify ... spill over and the memory starts paging out to disk that concerns me). ...
    (microsoft.public.data.ado)
  • Re: SQLCE 3.0 losing data after transaction
    ... Do you have a *small* code sample that illustrates this issue including code to create the database? ... Are you using DataSet or something less memory hungry like SqlCeResultSet? ... inserting many rows to the database we get a "not enough memory" ... And it occurs like there is a huge transaction and its roll backed. ...
    (microsoft.public.sqlserver.ce)
  • Re: dataset Performence Issue
    ... Microsoft that a DataSet is okay to abuse as a DataBase. ... Managed Code can never be as fast and as optimized ... very good for 90% of the situations i.e. normal memory usage, ... Merge/GetChanges - and oh lets not forget keeping your disconnected cache ...
    (microsoft.public.dotnet.framework.adonet)
  • Forth Transactional Memory
    ... summary of software transactional memory. ... programming multi-tasking systems relatively simple, ... you wouldn't need to use any locks, ... In this example the word INSERT runs as an atomic transaction: ...
    (comp.lang.forth)