Problem:but whenever i do getnotification it is really slow. Return [ (x.id, x.value) for x in fbcouchdb.view('_view/pop/noti Return [ (x.id, x.value) for x in fbcouchdb.view('_view/pop/unre ![]() R=fbcouchdb.view('_view/pop/unread',key=str(touser), count=1)īold: I even try to prepare the views when some one gets a new notifications by precalling the view unread ahead of time when a new notification for that user is inserted inorder to cause forced view regeneration Notidoc = Notification( fromuser = fromuser,touser=touser, link=link, message=message, activity=activity, image = image, appname = appname) Time =TimeField(default=())ĭate = DateField(default=()ĭef savenotifications(fromuser, tousers, link, message, activity, image, appname, *args, **kwargs): ![]() Goal: To prepare a facebook style notification using couchdbĬreated = DateTimeField(default=())
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |