This commit is contained in:
2018-12-18 20:05:38 +00:00
parent fe7104a999
commit bb9af5a85a
2 changed files with 22 additions and 1 deletions

View File

@@ -69,6 +69,23 @@ WHERE name = 'bill'
//Catch the concurrency exception, refetch and try again a certain number of times maximum until it's resolved
//maybe wrap that in a method I can re-use.
//Create table tags, word varchar 255, refcount longint, concurrency token
//so do this:
//ADD / INCREMENT TAGS
//START: Get tag word and concurrency token and count
//if not present, then add it with a count of 0
//If that fails due to others added it or works, either way go back to START:
//UPDATE: INCREMENT the refcount and update the record
//If that fails due to a concurrency exception go to START:
//REMOVE / DECREMENT TAGS
//Iterate remove tags
//Fetch the tag if it exists and decrement it's ref count
//Iterate addTags