dbTalk Databases Forums  

Dictionary Locking issues

comp.databases.pick comp.databases.pick


Discuss Dictionary Locking issues in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
DaveG
 
Posts: n/a

Default Dictionary Locking issues - 08-09-2005 , 01:08 PM






We've had an issue with the locking of the File definition record in
the md. The lock is a group lock, not an item lock. The lock occurs
between the ODBC connection and a local user - on the dictionary entry
(NOT records).

The search program OPENs the file, then does a READ while traversing
the file. The program appears to lock up on the OPEN statement. This
file is constantly being searched by many users.

This file is only updated from an ODBC connection from Goldmine/Access.
I do have a CALLX trigger on the file to update other files when a
change occurs. The trigger program is straightforward and should
execute very quickly - with provisions for locked records.

It appears that the ODBC connection is maintaining the lock on the
dictionary of the file - and not releasing it. Normally you never see
the lock on the dictionary.

Does an OPEN temporarily lock the dictionary of the file? Does ODBC
lock the dictionary for some reason?

D3/Linux 7.2.1
ODBC C27

For a workaround, I created a duplicate (I don't like duplicating
data...) file that the CALLX trigger updates. The search program now
uses that file.


Reply With Quote
  #2  
Old   
Mark Brown
 
Posts: n/a

Default Re: Dictionary Locking issues - 08-09-2005 , 02:59 PM






How are you making the connection?

ODBC doesn't normally lock anything because they never know how long
anything is going to take.

Also, ODBC via SQL uses the SQL TABLES file to locate the data file and then
opens it via full path (act,dictname,filename) and so wouldn't neccessarily
lock the master dictionary of the target account for anything.

Mark Brown

"DaveG" <daveg_0205 (AT) iwon (DOT) com> wrote

Quote:
We've had an issue with the locking of the File definition record in
the md. The lock is a group lock, not an item lock. The lock occurs
between the ODBC connection and a local user - on the dictionary entry
(NOT records).

The search program OPENs the file, then does a READ while traversing
the file. The program appears to lock up on the OPEN statement. This
file is constantly being searched by many users.

This file is only updated from an ODBC connection from Goldmine/Access.
I do have a CALLX trigger on the file to update other files when a
change occurs. The trigger program is straightforward and should
execute very quickly - with provisions for locked records.

It appears that the ODBC connection is maintaining the lock on the
dictionary of the file - and not releasing it. Normally you never see
the lock on the dictionary.

Does an OPEN temporarily lock the dictionary of the file? Does ODBC
lock the dictionary for some reason?

D3/Linux 7.2.1
ODBC C27

For a workaround, I created a duplicate (I don't like duplicating
data...) file that the CALLX trigger updates. The search program now
uses that file.




Reply With Quote
  #3  
Old   
Jeffrey Kaufman
 
Posts: n/a

Default Re: Dictionary Locking issues - 08-09-2005 , 03:33 PM



Dave,

We are only using ODBC for UPS Worldship and FedEx. We had a number of
problems trying to directly update sales orders with the freight
information. So we created a temporary shipping file and have ODBC simply
writing the information to that file. Then we have a phantom process that
wakes up every 5 minutes, selects the file, and updates the appropriate
records. No mess, no worries, no locks. Something to think about.

Jeff

"DaveG" <daveg_0205 (AT) iwon (DOT) com> wrote

Quote:
We've had an issue with the locking of the File definition record in
the md. The lock is a group lock, not an item lock. The lock occurs
between the ODBC connection and a local user - on the dictionary entry
(NOT records).

The search program OPENs the file, then does a READ while traversing
the file. The program appears to lock up on the OPEN statement. This
file is constantly being searched by many users.

This file is only updated from an ODBC connection from Goldmine/Access.
I do have a CALLX trigger on the file to update other files when a
change occurs. The trigger program is straightforward and should
execute very quickly - with provisions for locked records.

It appears that the ODBC connection is maintaining the lock on the
dictionary of the file - and not releasing it. Normally you never see
the lock on the dictionary.

Does an OPEN temporarily lock the dictionary of the file? Does ODBC
lock the dictionary for some reason?

D3/Linux 7.2.1
ODBC C27

For a workaround, I created a duplicate (I don't like duplicating
data...) file that the CALLX trigger updates. The search program now
uses that file.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.