MySQL Forums
Forum List  »  NDB clusters

Re: MySQL Cluster Slow Queries
Posted by: Mikael Ronström
Date: January 23, 2015 09:31AM

Hi,
A query like:
SELECT COUNT(1) FROM posts WHERE forum_id = 2
will actually be executed as a full table scan where forum_id = 2 is most
likely pushed down a condition pushdown. I am not sure how much data per
record found is sent, also you don't specify the result of the query, the
result is the number of records sent up. So obviously sending much data over
the network is much slower than internally in a box.

However it is hard to give more feedback without knowing more about the
specifics of your test case. Obviously a 100x difference sounds like
much too much.

Rgrds Mikael Ronström

Options: ReplyQuote


Subject
Views
Written By
Posted
2149
November 22, 2014 03:22PM
772
December 31, 2014 11:38AM
Re: MySQL Cluster Slow Queries
876
January 23, 2015 09:31AM


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.