mysql - FORCE INDEX in django -
is there way following:
select * `title_mediaasset` force index(upload_id_2) upload_id not null order `upload_date` desc
it like:
mediaasset.objects.exclude(upload__isnull=true).force_index('upload_id_2).order_by('-upload_date')
is there way this, outside of using .raw()
?
no, it's not possible using orm without using raw querysets.
there ticket #11003 add functionality, closed won't fix.
Comments
Post a Comment