news-ai / tabulae

API for media list management
https://tabulae.newsai.org/
0 stars 0 forks source link

lock issues #401

Closed AbhiAgarwal closed 7 years ago

AbhiAgarwal commented 7 years ago

nds:lockMemcache AddMulti memcache: item not stored

AbhiAgarwal commented 7 years ago

retry save until there's no item not stored issue

AbhiAgarwal commented 7 years ago

cannot write something because sometimes it's locked. when same thing is being written to many times it doesn't write properly. have to do a retry and timeout on some queries if they're being written many times at once

AbhiAgarwal commented 7 years ago

not sure if this is something that is achievable - have to see how memcache does locks

AbhiAgarwal commented 7 years ago

got an update from google. not too sure how to fix it well. might have to avoid updating things at once

AbhiAgarwal commented 7 years ago

i think i fixed this. sometimes will have to look into many datastore operations trying to do one thing. if that happens then it will lead to a lot of locks