Sharable Sessions for DBMS With Explicit Lock Reqs

Forums Personal Topics Unbidden Thoughts Sharable Sessions for DBMS With Explicit Lock Reqs

This topic contains 5 replies, has 1 voice, and was last updated by  Josh June 30, 2022 at 1:03 am.

  • Author
    Posts
  • #117429

    Josh

    An additional benefit of an explicit locking & isolation request syntax is the abilit to easily try alternatives to see what the performance impact is in the current implementation context.

  • #117430

    Josh

    Primitives I would pick to program with:

    NewLock =
    Lock(Session HoldingLock,
    Set of Sessions | External View to be locked out,
    DataGroup lock Applies To,
    For Write/Update | For Read)

    End(NewLock) (called by destructor)

    If Session HoldingLock & SetOfSessions can be identical as a special case – for read that is the implementation of unchanging reads

    Commits should end particular sessions & associated locks if they succeed.

    Anything big missing?

    • #117431

      Josh

      If a new interface is being designed from scratch then it could be implemented in a way that required promise/future types to used for requesting that data that could be locked.

  • #117440

    Josh

    Special “weak ref/guess sessions” could be created with the property that they automatically try to read only from the next level down in the stack if the referenced session has exited without error (successful commit)

  • #117468

    Josh

    Side point about using SQL for RBMS:

    Most all programming systems offer some version of new_point = map[key]=value which succeeds whether or not key is a new element of Key. Pure SQL requires insert/update combinations, repetively. This is simultaneously annoying on the level of both wasted human & computer efficiency. Decision to use a NoSQL vs. RDBMS ideally shouldn’t be based on that sub-optimality of the SQL language.

You must be logged in to reply to this topic.