Search found 28 matches: optimistic

Return to advanced search

Re: ADS - The future is <sadly> now so where do you go ?

... this type of resource would no longer be necessary, however there is still a lot to be done on the web. The program has many modules. Let's stay optimistic thanks to mod_harbour.
by Giovany Vecchi
Wed Apr 20, 2022 5:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ADS - The future is <sadly> now so where do you go ?
Replies: 26
Views: 2790

Re: ADOFUNC.prg e SQLEXPRESS

... to do this. 2) How to run an Rlock or Flock to prevent two users from working on the same record or groups of records. We can open a table with optimistic locking or pessimistic locking. Mostly tables are opened with optimistic locking and there is no need to locking. If we open a table with ...
by nageswaragunupudi
Fri Mar 19, 2021 7:30 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ADOFUNC.prg e SQLEXPRESS
Replies: 3
Views: 545

Re: Las dbf temporales se vacían con W10

Ya sabrás el tema del optimistic lock.
Yo pondría commit en cada grabacion de línea.

¿ Como asignas el nombre de cada tabla temporal ?
by Antonio Mart.
Wed Jun 24, 2020 4:40 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Las dbf temporales se vacían con W10
Replies: 1
Views: 391

Re: Another for Lan Network

There are two methods of file locking, optimistic and pessimistic. With optimistic, the user loads and edits the file, then when they are done, the record is locked, saved, and unlocked. With pessimistic, the record is locked, the user edits ...
by James Bott
Sat Nov 10, 2018 12:58 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Another for Lan Network
Replies: 4
Views: 1026

Re: dbfs on Network : wich performance method?

... Here is an example. This is fully network compatible. Open a file object with one line of code. Databases are open in shared mode, buffered, optimistic locking, no dealing with aliases workareas, etc. Use this with the customer.dbf file you recently sent me and/or change it slightly to work ...
by James Bott
Tue Oct 30, 2018 2:02 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: dbfs on Network : wich performance method?
Replies: 26
Views: 5450

Re: Adoordd , xbrowse

... := .F. # endif Shows only a window "Attention" , then the aplication freezes . "2048 The record was not saved because optimistic concurrency was in use." doesn't appear anymore I tried also to set locktype to adLockPessimistic ( in adordd , oRecordSet:Open( ....,2,...) ...
by Franklin Demont
Sat Oct 29, 2016 8:45 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Adoordd , xbrowse
Replies: 9
Views: 2315

Adoordd , xbrowse

... 4) Use fieldput() in bonpostedit BUT It is still impossible to change the value from a logical field : "2048 The record was not saved because optimistic concurrency was in use.",; It seems only the case on logical fields , other fields can be modified. Any sugestions ? Frank
by Franklin Demont
Thu Oct 27, 2016 10:35 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Adoordd , xbrowse
Replies: 9
Views: 2315

Re: MYSQL CREATE VIEW

What I do is not probably relevant. Optimistic locking or batch optimistic locking or detached recordsets, depending on the situations, but never lock and wait for user-input. Even ADS by default uses optimistic locking. Option of Pessimistic ...
by nageswaragunupudi
Tue Apr 28, 2015 2:04 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: MYSQL CREATE VIEW
Replies: 14
Views: 1935

Re: use FLOCK()

... many enhancements. I added some enhancements for record locking including automatic retries if a record is already locked. Personally, I aways use optimistic locking so a record is only locked for a second, so locked records are not really an issue. I rarely use file locking and I have not really ...
by James Bott
Fri Jan 30, 2015 10:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: use FLOCK()
Replies: 24
Views: 6097

Re: DBF to SQL script tool

... on locking / updating issues with databases in a multi-user setting. Do you deal with any of that with your new recordset ? Mostly we work with optimistic locking. This is automatic. You must be knowing about it in ADS. We can also use pessimistic locking like in our traditional dbf, but nobody ...
by nageswaragunupudi
Wed Jul 09, 2014 8:06 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DBF to SQL script tool
Replies: 50
Views: 13636

Re: tData for SQL

... of the 3rd party programs have built in features for SQL ( like Codejock ) that simplify the usage, but not for DBF. As I look to the future ( optimistic for this old timer ), I know I should make the transition. Remote desktop may work for you, but I don't see a need for it in my case. Finally, ...
by TimStone
Tue Jul 08, 2014 5:48 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: tData for SQL
Replies: 24
Views: 6202

Re: error in class DataRow

... finding it out. In line 355, please change ::AddNew() as oRs:AddNew() Next question about multiiuser issues: 1. If recordset is opened with adLockOptimistic: If other user modified the same record we get a runtime error when we call oRs:Update. So catch the error in TRY/CATCH block and dealwith ...
by nageswaragunupudi
Sun Jun 09, 2013 5:21 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: another error in class DataRow
Replies: 6
Views: 1757

Re: Converting DBFCDX to SQL (ADO)

... with his own codeblocks. XBrowse internally implements locking and unlocking where necessary. For ADO most common locking system adopted is Optimistic Locking and it does not require placing explicit locks. testxbr3.prg shows usage of reports also. Also please see xbincflt.prg in samples
by nageswaragunupudi
Sat May 18, 2013 4:20 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Converting DBFCDX to SQL (ADO)
Replies: 21
Views: 6018

Re: ADO MYSQL se cae con 2 usuarios modificando mismo registro

... face the possibility of another committing a change in that minute fraction of a second unless pessimistic locking is used and row is locked. With optimistic locking, finally we need to attempt write and handle the failure finally in some way or other. Even if the probability is very low, our code ...
by nageswaragunupudi
Fri Oct 14, 2011 1:29 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ADO MYSQL se cae con 2 usuarios modificando mismo registro
Replies: 3
Views: 1151

Re: Database Problem

... This also allows you to lock and update multiple records at one time (multiple records are locked, then updated, then unlocked). If you use optimistic locking the record is locked, saved, and immediately unlocked during the save method. Regards, James
by James Bott
Thu Oct 14, 2010 2:40 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Database Problem
Replies: 5
Views: 1109
Next

Return to advanced search