Hello,
I'm having a strange issue, I have a website that queries data through an
ajax call from the server using web2py json services every *5 seconds*.
Then from the client I can update some data to the server with this:
@service.json
def block_user():
data = json.loads(request.body.read())
user = db(db.users.id==data['id']).select().first()
user.update_record(banned=True, banned_by=auth.user_id)
alerts = db(db.alerts.alerts_id==data['id']).update(archived=True)
db.commit()
return "ok"
There's like 10 records in the database to be updated but the query takes
like 15-30seconds to process. I have no idea why is happening this.
Any help will be appreciated. Thanks!
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.