Jump to content

CachedUpdates becarefull !


Abaksoft

Recommended Posts

Hello Friends,

 

CachedUpdate and Autocommit  are  two properties very important !

With unigui, we are talking about a hundred users connected at the same time.

 

In such  multi users environement,  if your CachedUpdate is False  (as by Default with IBDAC /Devart), 

any changes by others users, on a UniDBGrid will attack directly your physical DataBase !

And if you are on this record (80% by chance), you will get this error : Conflict Record.

 

Solution :

Make sure :

__________________

Autocommit := False;

CachedUpdate := True;

__________________

 

it tooks me 4 hours to track the pb !

 

Regards

 

Link to comment
Share on other sites

Hello Friends,

 

CachedUpdate and Autocommit  are  two properties very important !

With unigui, we are talking about a hundred users connected at the same time.

 

In such  multi users environement,  if your CachedUpdate is False  (as by Default with IBDAC /Devart), 

any changes by others users, on a UniDBGrid will attack directly your physical DataBase !

And if you are on this record (80% by chance), you will get this error : Conflict Record.

 

Solution :

Make sure :

__________________

Autocommit := False;

CachedUpdate := True;

__________________

 

it tooks me 4 hours to track the pb !

 

Regards

 

how you handle the row for edit?

 

use form for edit row if its important data,

and always use lastupdate field to compare data change by other user before post

 

`lastupdate` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...