MySQL Query Optimization and joins -


i wondering whether query should run faster, , whether can make run faster query optimization. have 2 tables, tweets , ngrams contain 600,000 , 13.8 million rows respectively. interested in joining them (inner join) however, testing purposes, want 20 rows want order them measure:

select        tw.hash_tag, ng.ngram, count(*) cnt,         tweets tw inner join        ngrams ng on ng.tweet_id = tw.tweet_id group        tw.hash_tag, ng.ngram  order        cnt desc limit 20 

i not have experience larger datasets; how long should take? think should run faster is. if need more information, please let me know. also, try include can find such information not experienced. using mysql workbench run query.

  1. how can make query run faster?

all appreciated!


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -