This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user