> I would like to know how you're validating your assertion that MySQL > is the most used backend. It doesn't match my experience or > observation.
Nobody knows for sure. I'd put my money on it though. > The fact that this is a MySQL-specific issue is perhaps the biggest > impediment to my enthusiasm about this specific feature (as proposed). > I've spent enough time in the past covering for the inadequacies of > MySQL. I don't particularly relish the thought of adding more time to > that particular ledger. :-) I know, I've seen you pulling your hair out :-) > Having an implementation ignore kwargs is the obvious approach to > providing this feature cross platform. The issue for me is what > exactly the kwargs should be, and how they would be interpreted. It > isn't clear to be how 'index="my_index"' maps to the application of > USE INDEX, IGNORE INDEX or FORCE INDEX in a query, or how the > dictionary syntax would map to the situation where you have two > appearances of a given table in a query. Great, so lets define the syntax then and away we go. 1) I'd say index= would map to MySQL's USE INDEX and Oracle's index(). The others you mention there would be MySQL-specific kwargs. Or, more simply, ignore and force could be '-index' and '+index'. Bit like we use + and - for order_by. 2) The multiple table issue is edge case but worth supporting if it doesn't complicate the syntax too much. Rather than use models as keys we could use the filter/exclude name; eg {'relatedmodel__field': 'index'} would apply 'index' specifically to the 'relatedmodel__field' join. -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-develop...@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.