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
827
May 26, 2016 02:29PM
435
May 26, 2016 03:53PM
425
May 27, 2016 12:45AM
396
May 27, 2016 07:05AM
387
May 27, 2016 11:29PM
Re: Index Not being used.
392
May 31, 2016 07:04AM
380
May 31, 2016 09:26PM
424
June 01, 2016 05:40AM
354
June 01, 2016 11:29AM
404
June 01, 2016 11:41AM
407
June 04, 2016 05:14PM
403
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.