Optimizing has_perm query time on PERMISSION AND GROUP PERMISSION

21 views
Skip to first unread message

mohd irshad

unread,
Dec 18, 2014, 11:27:28 AM12/18/14
to django...@googlegroups.com
Hello , 
I am constantly facing face max cpu usage problem because of few database (postgres) heavy query has_perm is one of them.

how can I optimized such query.

aRkadeFR

unread,
Dec 19, 2014, 9:00:21 AM12/19/14
to django...@googlegroups.com
Hey mohd,

How do you know the CPU burnt come from the method has_perm?
Did you dump the query and play it again?

It's most likely to be something else FMPOV. The has_perm is just a simple
query in DB...

aRkadeFR
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/525f6423-f10b-40f7-8514-d3b5af225d96%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages