› 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.
-
AuthorPosts
-
June 29, 2022 at 5:49 am #117429

JoshAn 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.
-
June 29, 2022 at 7:14 am #117430

JoshPrimitives 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?
-
June 29, 2022 at 7:20 am #117431

JoshIf 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.
-
-
June 29, 2022 at 1:11 pm #117440

JoshSpecial “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)
-
June 30, 2022 at 1:03 am #117468

JoshSide 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.
-
AuthorPosts
You must be logged in to reply to this topic.