MySQL Forums
Forum List  »  Performance

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
3299
May 26, 2016 02:29PM
1498
May 26, 2016 03:53PM
1326
May 27, 2016 12:45AM
1245
May 27, 2016 07:05AM
1270
May 27, 2016 11:29PM
Re: Index Not being used.
1402
May 31, 2016 07:04AM
1258
May 31, 2016 09:26PM
1311
June 01, 2016 05:40AM
1111
June 01, 2016 11:29AM
1362
June 01, 2016 11:41AM
1251
June 04, 2016 05:14PM
1256
May 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.