EP1566744A1

Optimising lock granularity using range locking

Abstract

Invention relates to concurency control in a DBMS. The escalation method with primary key range locking is provided. An heuristic method is used to define key range.

EP1566744A1, drawing sheet 1
Sheet 1 of 4

Term

Term ended

Projected expiry passed 19 February 2024, 2.6 years ago.

  1. Priority and filed
  2. Published
  3. Projected expiry
  4. Today

7 claims: 5 independent, 2 dependent

  1. 1
    A method for processing a computer system comprising a lock mechanism for locking data objects, the lock mechanism comprising a first processing module requesting a lock service module to lock one or more (n) data objects for access for further data processing modules by creating one or more lock objects for the one or more data objects, said method further comprising:- the lock service receiving names of one or more (m) key fields of the one or more data objects to be locked;- the lock service receiving n values for each of the m key fields of n data objects to locked;- the lock service receiving a maximum number (k) of locks to lock the n data objects;- the lock service checking whether n =k and in case yes,    creating one or more lock objects comprising the m names and n values for the m key fields in case no,    querying the n values of the m key fields and determining numbers (y1 to ym) of different values (Val_1.1 to Val_m.ym) of the key fields 1 to m;- the lock service determining consecutively from a first to i-th field where i =m until y1*...*yi = k and in case the condition is satisfied, - creating one or more lock objects comprising the names of the key fields 1 to m and values Val_1.1 to Val_(i-1).y(i-1) for the key fields 1 to i-1 and comprising wildcards for the remaining key fields.
  2. 3
    A computer system for processing a computer system comprising a lock mechanism for locking data objects, the lock mechanism comprising a first processing module requesting a lock service module to lock one or more (n) data objects for access for further data processing modules by creating one or more lock objects for the one or more data objects, comprising:- memory having program instructions;- input means for receiving and entering data;- output means for sending and presenting data - storage means for storing data;- a processor responsive to the program instructions;- said program instructions comprising program code means for performing a method according to any of claims 1 to 2 when the program instructions are loaded into the memory executed by the processor.
  3. 4
    A computer readable medium comprising instructions for processing a computer system comprising a lock mechanism for locking data objects, the lock mechanism comprising a first processing module requesting a lock service module to lock one or more (n) data objects for access for further data processing modules by creating one or more lock objects for the one or more data objects, comprising instructions for:performing a method according to any of claims 1 to 7 when the program instructions are executed in the computer system.
  4. 5
    A computer program comprising program code means for performing a method as of any of claims 1 to 2 when said program is executed in a computer system.
  5. 7
    Use of a method, computer system, computer readable medium or computer program of one or more of claims 1 to 6, for use in a software for supporting business processes, particular in an enterprise resource planning software.