Guest User

Untitled

a guest
Feb 20th, 2018
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.89 KB | None | 0 0
  1. mysql> EXPLAIN SELECT count(*) from Specimen s join ColRange cr on cr.Id = s.ColrangeId join LocalityNew ln on ln.Id = cr.LocalityId join Taxa t on t.Id = s.TaxaId join Genus g on g.Id = t.GenusId left join Collector c on c.id = s.CollectorId left join SpecimenType st on s.SpecimenType = st.SPecimenType left join Island i on i.id = ln.IslandId left join Eparchia e on e.Id = ln.EparchiaID left join Nomos n on n.Id = e.NomosId left join Family f on f.Id = g.FamilyId left join Mountain m on m.Id = ln.MountainId left join Litterature li on li.Id = s.LittId;
  2. +----+-------------+-------+--------+-------------------------------------------------------------------------------+-----------------+---------+-------------------------------+------+-------------+
  3. | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
  4. +----+-------------+-------+--------+-------------------------------------------------------------------------------+-----------------+---------+-------------------------------+------+-------------+
  5. | 1 | SIMPLE | g | index | PRIMARY | genus_FamilyId | 4 | NULL | 1113 | Using index |
  6. | 1 | SIMPLE | t | ref | PRIMARY,IX_Taxa,taxa_GenusId | taxa_GenusId | 4 | florahellenica.g.Id | 4 | Using index |
  7. | 1 | SIMPLE | s | ref | IX_Specimen_ColRangeId,IX_Specimen_TaxaId,specimen_TaxaId,specimen_ColRangeId | specimen_TaxaId | 4 | florahellenica.t.Id | 31 | |
  8. | 1 | SIMPLE | cr | eq_ref | PRIMARY,colrange_LocalityId,IX_ColRange_LocalityId | PRIMARY | 4 | florahellenica.s.ColRangeId | 1 | |
  9. | 1 | SIMPLE | ln | eq_ref | PRIMARY | PRIMARY | 4 | florahellenica.cr.LocalityId | 1 | |
  10. | 1 | SIMPLE | c | eq_ref | PRIMARY,id | PRIMARY | 4 | florahellenica.s.CollectorId | 1 | Using index |
  11. | 1 | SIMPLE | st | eq_ref | PRIMARY | PRIMARY | 1 | florahellenica.s.SpecimenType | 1 | Using index |
  12. | 1 | SIMPLE | i | eq_ref | PRIMARY | PRIMARY | 4 | florahellenica.ln.IslandId | 1 | Using index |
  13. | 1 | SIMPLE | e | eq_ref | PRIMARY | PRIMARY | 4 | florahellenica.ln.EparchiaId | 1 | |
  14. | 1 | SIMPLE | n | eq_ref | PRIMARY | PRIMARY | 4 | florahellenica.e.NomosId | 1 | Using index |
  15. | 1 | SIMPLE | f | eq_ref | PRIMARY | PRIMARY | 4 | florahellenica.g.FamilyId | 1 | Using index |
  16. | 1 | SIMPLE | m | eq_ref | PRIMARY | PRIMARY | 4 | florahellenica.ln.MountainId | 1 | Using index |
  17. | 1 | SIMPLE | li | eq_ref | PRIMARY | PRIMARY | 4 | florahellenica.s.LittId | 1 | Using index |
  18. +----+-------------+-------+--------+-------------------------------------------------------------------------------+-----------------+---------+-------------------------------+------+-------------+
  19. 13 rows in set (0.00 sec)
Add Comment
Please, Sign In to add comment