php - Getting Doctrine to use MySQL "FORCE INDEX" -


I have a query in the doctor's DQL, which would greatly reduce the MySQL's "Force Index" functionality Question time below is a question that basically looks like in plain SQL:

  select from the item ID for the Forward Index (best_selling_ads) WHERE price = ... (etc ) LIMIT 200;  

I think I would have to expand some principle components to be able to do this with DQL (or in a way, to include SQL in one of the doctoral questions Any way?) Anyone have any ideas?

Thank you!

I have found very useful Doctrine_RawSql examples are online, so here is my query to create For what am i doing

  $ q = new Doctrine_RawSql (); $ Q- & gt; Select ('Table 1B Force Index' (Best_celling_idx) INNER join table 2c on BC Deid = C.id '(' {b.id}, {b.description}, {c.description} ') -> ) - & gt; Ed Comant ('B', 'Table 1B') - & gt; Ed Comant ('C', 'BTB 2C');  

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -