No. |
time |
query |
1 |
0.008687 |
connect
|
2 |
0.000857 |
DESCRIBE `school`
|
3 |
0.000497 |
SELECT `s`.* FROM `school` AS `s` WHERE (s.id = '3015077') AND (s.registration_status = 1) AND (s.is_opening = 1) LIMIT 1
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
s |
const |
PRIMARY |
PRIMARY |
4 |
const |
1 |
|
|
4 |
0.000817 |
DESCRIBE `schoolgroup`
|
5 |
0.000457 |
SELECT `sg`.* FROM `schoolgroup` AS `sg` WHERE (sg.id = '134') AND (sg.registration_status = 1) LIMIT 1
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
sg |
const |
PRIMARY |
PRIMARY |
4 |
const |
1 |
|
|
6 |
0.000447 |
SELECT COUNT(*) AS `cnt` FROM `school` AS `s` WHERE (s.registration_status = 1) AND (s.is_opening = 1) AND (s.schoolgroup_id = '134') LIMIT 1
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
s |
ref |
ix_schoolgroup_id_school |
ix_schoolgroup_id_school |
5 |
const |
4 |
Using where |
|
7 |
0.000657 |
DESCRIBE `school_score`
|
8 |
0.000387 |
SELECT `s_s`.* FROM `school_score` AS `s_s` WHERE (s_s.school_id = '3015077') AND (s_s.is_latest = 1)
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
s_s |
ref |
school_id |
school_id |
4 |
const |
1 |
Using where |
|
9 |
0.000627 |
DESCRIBE `access_log_school`
|
10 |
0.002617 |
SELECT `access_log_school`.`id` FROM `access_log_school` WHERE (ip_address = '3.145.10.68') AND (school_id = '3015077') AND (timestamp_created >= '2024-11-21 02:53:28') LIMIT 1
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
access_log_school |
index_merge |
school_id,ix_ip_address_access_log_school |
ix_ip_address_access_log_school,school_id |
767,4 |
|
1 |
Using intersect(ix_ip_address_access_log_school,school_id); Using where |
|
11 |
0.000607 |
DESCRIBE `access_count_school`
|
12 |
0.000397 |
SELECT `acs`.* FROM `access_count_school` AS `acs` WHERE (acs.school_id = '3015077') LIMIT 1
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
acs |
ref |
school_id |
school_id |
4 |
const |
1 |
|
|
13 |
0.023077 |
UPDATE `access_count_school` SET `count` = ?, `timestamp_modified` = ? WHERE (`access_count_school`.`id` = 1506)
|
14 |
0.000427 |
SELECT `access_count_school`.* FROM `access_count_school` WHERE (`access_count_school`.`id` = 1506) LIMIT 1
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
access_count_school |
const |
PRIMARY |
PRIMARY |
4 |
const |
1 |
|
|
15 |
0.009537 |
INSERT INTO `access_log_school` (`school_id`, `ip_address`, `timestamp_created`, `timestamp_modified`) VALUES (?, ?, ?, ?)
|
16 |
0.000537 |
SELECT `access_log_school`.* FROM `access_log_school` WHERE (`access_log_school`.`id` = 12879295) LIMIT 1
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
access_log_school |
const |
PRIMARY |
PRIMARY |
4 |
const |
1 |
|
|
17 |
0.000707 |
DESCRIBE `school_station`
|
18 |
0.000387 |
SELECT `s_s`.* FROM `school_station` AS `s_s` WHERE (s_s.school_id = '3015077') LIMIT 1
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
s_s |
ref |
school_id |
school_id |
4 |
const |
4 |
|
|
19 |
0.000387 |
SELECT `s_s`.* FROM `school_station` AS `s_s` WHERE (s_s.station_id = '4163')
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
s_s |
ref |
station_id |
station_id |
4 |
const |
1 |
|
|
20 |
0.000977 |
SELECT `s`.* FROM `school` AS `s` WHERE (s.id IN ('3015077')) AND (s.is_charged = 1) AND (s.registration_status = 1) AND (s.is_opening = 1)
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
|
|
|
|
|
|
|
Impossible WHERE noticed after reading const tables |
|
21 |
0.000497 |
SELECT `s`.* FROM `school` AS `s` WHERE (s.city_id = '1942') AND (s.is_charged = 1) AND (s.registration_status = 1) AND (s.is_opening = 1)
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
s |
ref |
city_id |
city_id |
5 |
const |
1 |
Using where |
|
22 |
0.000617 |
DESCRIBE `city`
|
23 |
0.000377 |
SELECT `c`.* FROM `city` AS `c` WHERE (c.id = '1942') LIMIT 1
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
c |
const |
PRIMARY |
PRIMARY |
4 |
const |
1 |
|
|
24 |
0.000577 |
SELECT `c`.* FROM `city` AS `c` WHERE (c.prefecture_id = '40')
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
c |
ref |
prefecture_id |
prefecture_id |
5 |
const |
54 |
|
|
25 |
0.001387 |
SELECT `s`.* FROM `school` AS `s` WHERE (s.city_id IN ('1905', '1909', '1910', '1911', '1913', '1914', '1915', '1916', '1917', '1918', '1922', '1923', '1930', '1938', '1939', '1940', '1941', '1942', '1943', '1944', '1945', '1949', '1950', '1951', '1952', '1961', '1962', '1963', '1967', '1968', '1969', '1970', '1971', '1972', '1973', '1974', '1975', '1976', '1977', '1978', '1979', '1980', '1981', '1982', '1983', '1984', '1988', '1989', '1990', '1991', '1993', '1999', '2000', '2301')) AND (s.is_charged = 1) AND (s.registration_status = 1) AND (s.is_opening = 1)
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
s |
range |
city_id |
city_id |
5 |
|
192 |
Using index condition; Using where |
|
26 |
0.000587 |
DESCRIBE `prefecture`
|
27 |
0.000337 |
SELECT `p`.* FROM `prefecture` AS `p` WHERE (p.id = '40') LIMIT 1
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
p |
const |
PRIMARY |
PRIMARY |
4 |
const |
1 |
|
|
28 |
0.000417 |
SELECT `s_s`.* FROM `school_station` AS `s_s` WHERE (s_s.school_id = '3015077') ORDER BY `distance` ASC LIMIT 1
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
s_s |
ref |
school_id |
school_id |
4 |
const |
4 |
Using index condition; Using filesort |
|
29 |
0.000537 |
DESCRIBE `station`
|
30 |
0.000387 |
SELECT `s`.* FROM `station` AS `s` WHERE (s.id = '4163') LIMIT 1
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
s |
const |
PRIMARY |
PRIMARY |
4 |
const |
1 |
|
|
31 |
0.000517 |
DESCRIBE `station_unit`
|
32 |
0.000397 |
SELECT `s_s`.* FROM `school_station` AS `s_s` WHERE (s_s.school_id = '3015077')
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
s_s |
ref |
school_id |
school_id |
4 |
const |
4 |
|
|
33 |
0.000527 |
DESCRIBE `station_station_unit`
|
34 |
0.000347 |
SELECT `s_s_s`.* FROM `station_station_unit` AS `s_s_s` WHERE (s_s_s.station_id = '4163')
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
s_s_s |
ref |
station_id |
station_id |
4 |
const |
1 |
|
|
35 |
0.000427 |
SELECT `s_s_s`.* FROM `station_station_unit` AS `s_s_s` WHERE (s_s_s.station_id = '4162')
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
s_s_s |
ref |
station_id |
station_id |
4 |
const |
1 |
|
|
36 |
0.000457 |
SELECT `s_s_s`.* FROM `station_station_unit` AS `s_s_s` WHERE (s_s_s.station_id = '8899')
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
s_s_s |
ref |
station_id |
station_id |
4 |
const |
1 |
|
|
37 |
0.000397 |
SELECT `s_s_s`.* FROM `station_station_unit` AS `s_s_s` WHERE (s_s_s.station_id = '8900')
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
s_s_s |
ref |
station_id |
station_id |
4 |
const |
1 |
|
|
38 |
0.000457 |
SELECT `s_s`.* FROM `station_unit` AS `s_s` WHERE (false)
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
|
|
|
|
|
|
|
Impossible WHERE |
|
39 |
0.000537 |
DESCRIBE `major_city`
|
40 |
0.000477 |
DESCRIBE `city_major_city`
|
41 |
0.000477 |
SELECT `c_m_c`.* FROM `city_major_city` AS `c_m_c` WHERE (c_m_c.city_id = '1942')
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
c_m_c |
ref |
city_id |
city_id |
4 |
const |
1 |
|
|
42 |
0.000377 |
SELECT `m_c`.* FROM `major_city` AS `m_c` WHERE (m_c.id IN ('11'))
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
m_c |
const |
PRIMARY |
PRIMARY |
4 |
const |
1 |
|
|
43 |
0.000617 |
DESCRIBE `summary_count_school`
|
44 |
0.000457 |
SELECT `s_c_s`.* FROM `summary_count_school` AS `s_c_s` WHERE (s_c_s.is_latest = 1) AND (s_c_s.category_id = 0) AND (s_c_s.prefecture_id = 0) AND (s_c_s.city_id = 0) AND (s_c_s.station_id = 0) AND (s_c_s.station_unit_id = 0) AND (s_c_s.major_city_id = 0) LIMIT 1
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
s_c_s |
ref |
multi |
multi |
28 |
const,const,const,const,const,const,const |
1 |
|
|
45 |
0.000807 |
DESCRIBE `staff_school`
|
46 |
0.000427 |
SELECT `s`.* FROM `staff_school` AS `s` WHERE (s.school_id = '3015077') AND (s.valid = 1)
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
s |
ref |
school_id |
school_id |
4 |
const |
1 |
Using where |
|
47 |
0.004527 |
DESCRIBE `category_school`
|
48 |
0.000437 |
SELECT `c_s`.* FROM `category_school` AS `c_s` WHERE (c_s.school_id = '3015077') AND (c_s.valid = 1) LIMIT 5
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
c_s |
ref |
school_id |
school_id |
4 |
const |
1 |
Using where |
|
49 |
0.000387 |
SELECT `c_s`.* FROM `category_school` AS `c_s` WHERE (c_s.school_id = '3015077') AND (c_s.valid = 1) LIMIT 5
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
c_s |
ref |
school_id |
school_id |
4 |
const |
1 |
Using where |
|
50 |
0.000367 |
SELECT `c_s`.* FROM `category_school` AS `c_s` WHERE (c_s.school_id = '3015077') AND (c_s.valid = 1) LIMIT 5
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
c_s |
ref |
school_id |
school_id |
4 |
const |
1 |
Using where |
|
51 |
0.000397 |
SELECT `c_s`.* FROM `category_school` AS `c_s` WHERE (c_s.school_id = '3015077') AND (c_s.valid = 1) LIMIT 6
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
c_s |
ref |
school_id |
school_id |
4 |
const |
1 |
Using where |
|
52 |
0.000657 |
SELECT `s_s`.* FROM `school_station` AS `s_s` WHERE (s_s.school_id = '3015077') ORDER BY `time` ASC, `distance` ASC LIMIT 3
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
s_s |
ref |
school_id |
school_id |
4 |
const |
4 |
Using index condition; Using filesort |
|
53 |
0.000337 |
SELECT `s`.* FROM `station` AS `s` WHERE (s.id = '4163') LIMIT 1
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
s |
const |
PRIMARY |
PRIMARY |
4 |
const |
1 |
|
|
54 |
0.000857 |
SELECT `s`.* FROM `station` AS `s` WHERE (s.id = '4162') LIMIT 1
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
s |
const |
PRIMARY |
PRIMARY |
4 |
const |
1 |
|
|
55 |
0.000337 |
SELECT `s`.* FROM `station` AS `s` WHERE (s.id = '8899') LIMIT 1
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
s |
const |
PRIMARY |
PRIMARY |
4 |
const |
1 |
|
|
56 |
0.000517 |
DESCRIBE `dancer`
|
57 |
0.000437 |
SELECT `c`.`id` FROM `dancer` AS `c`
INNER JOIN `dancer_column` AS `d_c` ON c.id = d_c.dancer_id AND d_c.valid = 1 ORDER BY `d_c`.`timestamp_created` DESC
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
d_c |
ALL |
ix_dancer_id_dancer_column |
|
|
|
29 |
Using where; Using filesort |
1 |
SIMPLE |
c |
eq_ref |
PRIMARY |
PRIMARY |
4 |
jobikai_dance.d_c.dancer_id |
1 |
Using index |
|
58 |
0.000427 |
SELECT `c`.* FROM `dancer` AS `c` WHERE (c.id IN ('17', '16', '15', '14', '13'))
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
c |
range |
PRIMARY |
PRIMARY |
4 |
|
5 |
Using where |
|
59 |
0.000597 |
DESCRIBE `dancer_column`
|
60 |
0.000407 |
SELECT `c`.* FROM `dancer_column` AS `c` WHERE (c.valid = 1) AND (c.dancer_id = '17') ORDER BY `timestamp_created` ASC
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
c |
ref |
ix_dancer_id_dancer_column |
ix_dancer_id_dancer_column |
5 |
const |
2 |
Using index condition; Using where; Using filesort |
|
61 |
0.000447 |
SELECT `c`.* FROM `dancer_column` AS `c` WHERE (c.valid = 1) AND (c.dancer_id = '16') ORDER BY `timestamp_created` ASC
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
c |
ref |
ix_dancer_id_dancer_column |
ix_dancer_id_dancer_column |
5 |
const |
2 |
Using index condition; Using where; Using filesort |
|
62 |
0.000407 |
SELECT `c`.* FROM `dancer_column` AS `c` WHERE (c.valid = 1) AND (c.dancer_id = '15') ORDER BY `timestamp_created` ASC
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
c |
ref |
ix_dancer_id_dancer_column |
ix_dancer_id_dancer_column |
5 |
const |
2 |
Using index condition; Using where; Using filesort |
|
63 |
0.000567 |
SELECT `c`.* FROM `dancer_column` AS `c` WHERE (c.valid = 1) AND (c.dancer_id = '14') ORDER BY `timestamp_created` ASC
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
c |
ref |
ix_dancer_id_dancer_column |
ix_dancer_id_dancer_column |
5 |
const |
2 |
Using index condition; Using where; Using filesort |
|
64 |
0.000407 |
SELECT `c`.* FROM `dancer_column` AS `c` WHERE (c.valid = 1) AND (c.dancer_id = '13') ORDER BY `timestamp_created` ASC
id |
select_type |
table |
type |
possible_keys |
key |
key_len |
ref |
rows |
Extra |
1 |
SIMPLE |
c |
ref |
ix_dancer_id_dancer_column |
ix_dancer_id_dancer_column |
5 |
const |
1 |
Using index condition; Using where; Using filesort |
|