python - Django log operations between two publish actions -
i got problem django.
i have site has 'publish' function.
i need keep changes between 2 'publish' actions.
details example:
when first click publish, 2 objects(assume obj1 , obj2) stay in state state1.
now change, e.g. change field of ojb1 , delete ojb2, don't press publish.
so, currently, users browser still see obj1 , obj2 in state state1.
then, trigger "publish", user should see changed obj1 , obj2 disappears.
so, firstly, thought use 2 databases(currently use mysql), assume db1 , db2, views functions data db1 , show users.
db2 used keep realtime data containning changes administrator.
so, when press publish button, dump db2 db1.
this method has problem produce hign latency when sync db ,
somethings waists io resources,e.g. changed 2
objects, sync whole db.
anyone has better idea?
thanks.
wesley
Comments
Post a Comment