Welcome to jBASE's new documentation site! Many answers to your questions can be found by searching the Knowledgebase or viewing the jBASE Documentation. We also have a Google Group for peer discussion about jBASE. If you are unable to find the information you are looking for, jBASE Support will be glad to assist in resolving your technical problems. Enjoy and please provide comments and feedback .

How can we help you?



Indexes could become out of sync if the application didn't protect parallel updates with READU 

Previous Release Behavior

Indexing had a problem when 2 processes were updating the same item at the same time. 

Let  us assume there are 2 processes both doing this at the same time with  the same record key. Also assume an index on attribute 1. 

rec<1> = RND(1000)

Inside  jEDI, we will update the index and then update the file itself. These  operations are not atomic. This mean the following could happen: 

  • Process A updates the index with its value in attribute 1 
  • Process B updates the index with its value in attribute 1 
  • Process B updates the file with its value 
  • Process A updates the file with its value 

The index now reflects the item in Process B, whereas the file reflects the item in process A. The index is now corrupt. 

Usually,  this isn't a problem as a customer will have locked the item with a  READU. This means the above scenario couldn't happen because of the  application locks. However, if application locks are not used then the  index can get out of sync. 

Current Release Behavior

An internal lock is applied to make the index update and file update atomic. 

Was this article helpful?