How to share no committed objects between sessions

From: Oscar Maire-Richard (omair..idsa.es)
Date: Mon Jul 10 2006 - 12:41:12 EDT

  • Next message: Øyvind Harboe: "UUID as primary key"

    Hi,
    I would like to know your suggestions for what I think is a common problem:

    For each request my application obtains an identifier (that is not the
    PK but must be unique), if a DataObject with this identifier exists,
    uses it, other case creates a new one; does some processing (with other
    DataObjects) and commits all. I am using a data context per session.
    My problem is how to avoid DataObjects with duplicated identifiers when
    several sessions send requests simultaneously.

    An obvious solution is to synchronize the whole process until the commit
    is done, however the processing requires a long time, and I would like
    to parallelize to improve performance.

    Thanks,

    Oscar



    This archive was generated by hypermail 2.0.0 : Mon Jul 10 2006 - 12:40:26 EDT