Welcome, Guest. Please Login.
09/21/24 at 00:29:41
News:
Home Help Search Login


Pages: 1
Send Topic Print
Locking (Read 949 times)
Karen Mason
Active Member
*****


Ain't life grand!?!

Posts: 728
Gender: female
Locking
11/30/04 at 12:14:06
 
I know we always complain about locking, but we have run into the locking not working and causing a problem twice that we can pinpoint.  When we are in AP-C. enter purchase order invoices, we were inbetween answering the questions: Do you accept this entry and do you wish to close out the PO?  Another user went into AP-A to retrieve the same vendor's phone number.  It alerted the first user in AP-C that they were locked out by another user.  
 
In this instance the user in AP-C answered no to do you want to go on.  We were kicked out totally.  Looked in GL and the invoice was not in the batch.  Tried to reenter the invoice and we got the error message, no open orders before 11/30/04.  Went into PO and the po was closed out.  Invoice not in aging.
 
It seems like the 2nd user in AP-A should have been the user locked out since the invoice process was already started.
 
As I said before, this is at least the 2nd time this has happened.
 
Thanks
Back to top
 
 

Karen Mason, Vice President
Bula Forge & Machine, Inc.
1-60# forgings, machining, & assembly
Cleveland, OH
Tel:216-252-7600 Fax:216-252-7601 www.bulaforge.com
EVO-ERP 09/16/09 SP2
Email WWW   IP Logged
aricon
Active Member
*****


Systems
Consulting-See
website for
products!

Posts: 1283
Gender: male
Re: Locking
Reply #1 - 11/30/04 at 12:31:51
 
Ah yes, the beautiful side of the non-relational database..... ???
Back to top
 
 

Sincerely,

Lorne Rogers
President
Aria Consulting & Implementers Ltd.
Phone: (780) 471-1430
Fax: (780) 471-4918
E-mail: lrogers@ariaconsulting.net
Email WWW   IP Logged
kevind
Active Member
*****


I was more than
willing to
"pony up",
how b'out U?

Posts: 639
Gender: male
Re: Locking
Reply #2 - 12/01/04 at 08:14:46
 
A truly relational database and structure is not REQUIRED to eliminate record locking conflicts.
 
For 15 years, I Maintained an Accounting / Inventory / Order Entry system for an Alpha-Micro System.  As shipped, this software was riddled with file / record locking problems because the developers did not understand the most basic concepts of locking.  Luckily, It came with full sources.  
 
In many cases, record locking was completely ignored because of a fundamental misunderstanding of the difference between 'Operating system level' and 'Application level' file and record sharing.
 
Transactional Record locking boils down to two fundamental rules.
These address 99.99% of record locking problems:
 
1. Never lock a record and then expect some kind of user action before unlocking it.
2. Always update records with a lock-read-modify-write-unlock sequence.  
 
Example:
a. User displays MRP info for an Item.  This record is read WITHOUT a lock.
b. ReOrder Level is modified.
c. Save is clicked.
d. Record is Re-Read WITH a lock (this will refresh any fields that were modified by other processes / users), The changed field is applied, the record is written, and Unlocked.
 
The IS Tech developers know this.  We have already seen the benefits in many places.  Unfortunately, it takes a really long time to ring all of these out.  In many cases it means a change to program flow and/or logic to make it work correctly.
Back to top
 
 

Kevin Damke
Spectronics Corporation
ISTECH 2004.1 7/26/13 SP1 - 20 user
Evo-ERP Build 7/25/13 T7 -7i R6 - 3 user
(Prev version was 2004.1 10/24/12)
(All Patches Installed as of 7/26/13)
Pervasive 2000i SP4 - Crystal Reports V10
Email WWW   IP Logged
Lynn_Pantic
Administrator
*****


evolution (n) -
gradual change to a
different form

Posts: 5681
Re: Locking
Reply #3 - 12/01/04 at 09:19:38
 
You are correct Kevin, we have made many changes to the program logic to what we call "Just in Time" record locking - the lock-write-unlock approach.  Unfortunately, as you say, much of DBA wasn't originally written that way so it is taking time to work through it all.
 
Another issue, Karen, is the choice of programs used.  You should encourage your people to use the View-Only PO-P and AR-Q to look up vendor and customer information and only use AR-A and AP-A when changes need to be made.
Back to top
 
 

Lynn Pantic
IS Tech Support
lynn@istechsupport.com
Email   IP Logged
aricon
Active Member
*****


Systems
Consulting-See
website for
products!

Posts: 1283
Gender: male
Re: Locking
Reply #4 - 12/01/04 at 10:13:38
 
Kevin/Lynn,
 
Of COURSE that is correct. HOWEVER, the wonders of a relational DB,  means that the challenge/response rules are maintained and managed by the DB, NOT by the application code per se. THAT is what I was getting at.
Back to top
 
 

Sincerely,

Lorne Rogers
President
Aria Consulting & Implementers Ltd.
Phone: (780) 471-1430
Fax: (780) 471-4918
E-mail: lrogers@ariaconsulting.net
Email WWW   IP Logged
kevind
Active Member
*****


I was more than
willing to
"pony up",
how b'out U?

Posts: 639
Gender: male
Re: Locking
Reply #5 - 12/01/04 at 12:10:43
 
Not to mention "Referential Integrity"  Wink
Back to top
 
 

Kevin Damke
Spectronics Corporation
ISTECH 2004.1 7/26/13 SP1 - 20 user
Evo-ERP Build 7/25/13 T7 -7i R6 - 3 user
(Prev version was 2004.1 10/24/12)
(All Patches Installed as of 7/26/13)
Pervasive 2000i SP4 - Crystal Reports V10
Email WWW   IP Logged
Karen Mason
Active Member
*****


Ain't life grand!?!

Posts: 728
Gender: female
Re: Locking
Reply #6 - 12/01/04 at 14:08:21
 
You all are way beyond me.... but thanks.
 
I will need to modify EVO to add PO-P.  
 
Lynn, is there a way the updates could have these added menu items already in them?  If not, maybe a good procedure to follow each time.
 
Thanks
Back to top
 
 

Karen Mason, Vice President
Bula Forge & Machine, Inc.
1-60# forgings, machining, & assembly
Cleveland, OH
Tel:216-252-7600 Fax:216-252-7601 www.bulaforge.com
EVO-ERP 09/16/09 SP2
Email WWW   IP Logged
cathyh
Active Member
*****


I used to be
indecisive; now I'm
not so sure......

Posts: 1213
Gender: female
Re: Locking
Reply #7 - 12/01/04 at 14:18:58
 
I don't have PO-P either and I was just looking at the menu add-on list for EVO and don't see it there either. ???
Back to top
 
 

Cathy Hamilton
Wing Inflatables, Inc.
EVO-ERP2008.1(20 users) w/IS Tech update 5/25/09 (as of 08/21/09)
Windows 2008 Server/client
Pervasive V10.1
Email WWW   IP Logged
Pages: 1
Send Topic Print