MySQL Forums :: Performance :: Index Not being used.


Advanced Search

Re: Index Not being used.
Posted by: Greg Mundt ()
Date: May 31, 2016 07:04AM

All fields are from the pos_ord_lines table. The ORD_Date where clause uses the pos_ord_headers table. When you think of the tables there is a header table that is order header containing ord_id, ord_date, ord_merch, ord_discount, ord_tax and then the pos_ord_lines can have multiple items on each order. The system has 4 GB of RAM. I have tried with and without the FORCE INDEX. With is returns 5,134,336 rows and without it doesn't use the index and returns 19,000,000 rows from header. Either way it times out after 600 seconds. This table is updated multiple times daily by various clients running end of day and transmitting this information. It isn't so much a data warehouse as I understand the definition.

Options: ReplyQuote


Subject Views Written By Posted
Index Not being used. 632 Greg Mundt 05/26/2016 02:29PM
Re: Index Not being used. 330 Peter Brawley 05/26/2016 03:53PM
Re: Index Not being used. 349 Øystein Grøvlen 05/27/2016 12:45AM
Re: Index Not being used. 315 Greg Mundt 05/27/2016 07:05AM
Re: Index Not being used. 311 Rick James 05/27/2016 11:29PM
Re: Index Not being used. 310 Greg Mundt 05/31/2016 07:04AM
Re: Index Not being used. 306 Rick James 05/31/2016 09:26PM
Re: Index Not being used. 342 Greg Mundt 06/01/2016 05:40AM
Re: Index Not being used. 284 Rick James 06/01/2016 11:29AM
Re: Index Not being used. 331 Greg Mundt 06/01/2016 11:41AM
Re: Index Not being used. 333 Rick James 06/04/2016 05:14PM
Re: Index Not being used. 339 Greg Mundt 05/27/2016 10:14AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.