> > Are there any hopes of speeding up or caching GenericForgeinKey queries ? > I found - > http://zerokspot.com/weblog/2008/08/13/genericforeignkeys-with-less-queries/ > > Adding 'db_index=True' to the GenericForeignKey's object_id field should be a significant performance enhancement. It won't get as good results as the other solution, though, but that should prevent the database from doing full table scans. But I'm not sure whether GenericRelations allow this, because no django object permission app does this.
> can your solution be backward compatible? > My solution should be backward compatible as-is. As default, the patch assumes every model not having the ability to grant/check for object permissions. So it won't get in conflict with those (outdated) models. Furthermore it does not modify the existing contrib.auth models in a way that would require a new database table schema but only adds a new model called ObjectPermission. Best regards, Moritz -- You received this message because you are subscribed to the Google Groups "Django developers" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-developers/-/P1sCKnIJR38J. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.