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

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -