• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: MySqlPlugin
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MySqlPlugin


  • Subject: Re: MySqlPlugin
  • From: Robin Smith <email@hidden>
  • Date: Mon, 17 Mar 2014 11:07:34 +0000

Using the explain tells me that when i supply a LIMIT query then my indexes are ignored, which i believe is the expected behaviour as according to mysql forums this is the way mysql works "out of the box"

What i'm wondering is if i choose not to use LIMIT queries then will there be any fallout to things such as batch fetch iterator as i seem to recall that the addition of LIMIT to the mysql plugin is relatively new.

Thanks

Robin


On 7 March 2014 18:32, Klaus Berkling <email@hidden> wrote:

On Mar 7, 2014, at 10:20 AM, Robin Smith <email@hidden> wrote:

I'm not sure about fetch plans, all i know at the moment is if i remove the LIMIT query i get millisecond performance on my query but if i include a LIMIT clause i get a full table scan.

You can log the query WO generates and run that through EXPLAIN? Try it with and without the limit.



On 7 March 2014 17:15, Jesse Tayler <email@hidden> wrote:
did you check to make sure your database is using the index fetch plan you expect?

I recall with MySQL sometimes indexes would fail but there would be no indication until I actually reviewed the fetch internals…

something chuck would know off the top of his head I’m sure…




On Mar 7, 2014, at 12:02 PM, Robin Smith <email@hidden> wrote:

Hi All

We have been experiencing some performace issues with our DB queries that we have narrowed down to the "limitClause" applied to sql queries. It seems that out of the box MySQL uses no indexes when supplied with a LIMIT clause.

Taking this into consideration we were wondering if anything like batch fetch iterator rely on the limit clause being applied to queries or if we could safely remove (or add switch to) this part of _MySqlPlugin.

Thanks

Robin

--
Robin Smith
Engineering Team Leader  BEng (Hons) MBCS


http://www.clicktravel.com

Think: Do you really need to print this email?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)

This email sent to email@hidden




--
Robin Smith
Engineering Team Leader  BEng (Hons) MBCS


http://www.clicktravel.com

Think: Do you really need to print this email?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)

This email sent to email@hidden



kib

"We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths."
Walt Disney

Klaus Berkling
www.berkling.us | @kiberkli | Buy My iPhone app 




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden



--
Robin Smith
Engineering Team Leader  BEng (Hons) MBCS


http://www.clicktravel.com

Think: Do you really need to print this email?
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >MySqlPlugin (From: Robin Smith <email@hidden>)
 >Re: MySqlPlugin (From: Jesse Tayler <email@hidden>)
 >Re: MySqlPlugin (From: Robin Smith <email@hidden>)

  • Prev by Date: Re: WOCommunity Jenkins down
  • Next by Date: The WOCommunity Wiki is DOWN!
  • Previous by thread: Re: MySqlPlugin
  • Next by thread: HELP : Apache2.4.6 on Windows 2003 Server (R2) SP2
  • Index(es):
    • Date
    • Thread