MySQL Forums
Forum List  »  Views

Re: Join
Posted by: Austin Kalb
Date: April 12, 2013 12:10AM

I have no clue how this can explain the issue... thanks for your help!

sorry about the formatting. Best I could do.

A


mysql> explain extended select count(*) from todaysStockOptionTrades join todaysStockOptions using (optionSymbol);
+----+-------------+-------------------------+--------+
| id | select_type | table | type |
+----+-------------+-------------------------+--------+
| 1 | SIMPLE | todaysStockOptionTrades | index |
| 1 | SIMPLE | todaysStockOptions | eq_ref |
+----+-------------+-------------------------+--------+

-----------------------------------------------------------
possible_keys
-----------------------------------------------------------
PRIMARY,fk_todaysStockOptionTrades_todaysStockOptions1_idx
PRIMARY,optionSymbol_idx
-----------------------------------------------------------

------------------+-------------------+---------+
| key | key_len |
------------------+-------------------+---------+
,optionSymbol_idx | tradeDateTime_idx | 8 |
| PRIMARY | 22 |
------------------+-------------------+---------+

----------------------------------------------+-------+----------+-------------+
ref | rows | filtered | Extra |
----------------------------------------------+-------+----------+-------------+
NULL | 99352 | 100.00 | Using index |
itrader.todaysStockOptionTrades.optionSymbol | 1 | 100.00 | Using index |
----------------------------------------------+-------+----------+-------------+

Options: ReplyQuote


Subject
Views
Written By
Posted
5622
April 11, 2013 04:14PM
2352
April 11, 2013 11:41PM
Re: Join
2430
April 12, 2013 12:10AM
2329
April 12, 2013 10:21AM
2492
April 12, 2013 11:03AM
2346
April 15, 2013 01:05PM
2442
April 15, 2013 01:09PM
2652
April 15, 2013 03:29PM


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.