摘要 |
Methods, systems and software applications are provided for real time data processing. In one implementation, a method is provided for locking data objects in a computer system. The method may comprise requesting, with a first processing module, 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. The method may also include performing the following steps with the lock service module: receiving names of one or more (m) key fields of the one or more data objects to be locked, receiving n values for each of the m key fields of n data objects to locked, receiving a maximum number (k) of locks to lock the n data objects, and 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 and, 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. Further, the method may include 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.
|