-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNOTES
192 lines (171 loc) · 7.89 KB
/
NOTES
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
+---------------+------------+-----------------+
| Table Name | Rows Count | Table Size (MB) |
+---------------+------------+-----------------+
| snap | 577 791 | 89.30 |
| meta | 398 137 | 77.23 |
| metalink | 2 074 | 0.11 |
| observatory | 9 | 0.03 |
| server | 2 | 0.03 |
| station | 9 | 0.02 |
| stationstatus | 0 | 0.02 |
| user | 2 | 0.05 |
+---------------+------------+-----------------+
mysql> UPDATE meta SET time = time*1000;
Query OK, 396330 rows affected, 65535 warnings (30.64 sec)
Rows matched: 396331 Changed: 396330 Warnings: 396330
cca 63 dnů @ 7 stanic (9) ... data jsou ulozena celociselne
mysql> SELECT table_name AS `Table`, table_rows AS rows, round(((data_length + index_length) / 1024 / 1024), 2) `Size in MB` FROM information_schema.TABLES WHERE table_schema = 'bolid' ORDER BY (data_length+ index_length) DESC;
+-------------------------------------+
| # 2016-02-17 |
+---------------+--------+------------+
| Table | rows | Size in MB |
+---------------+--------+------------+
| snap | 533377 | 82.23 |
| meta | 314649 | 68.70 |
| user | 4 | 0.05 |
| metalink | 134 | 0.05 |
| server | 2 | 0.03 |
| observatory | 9 | 0.03 |
| stationstatus | 0 | 0.02 |
| station | 9 | 0.02 |
| meteor | NULL | NULL |
+---------------+--------+------------+
mysql> SELECT table_name AS `Table`, table_rows AS rows, round(((data_length + index_length) / 1024 / 1024), 4) `Size in MB` FROM information_schema.TABLES WHERE table_schema = 'RTbolidozor' ORDER BY (data_length+ index_length) DESC;
mysql> select count(*), id_station, station.name from meta JOIN station ON meta.id_station = station.id group by id_station order by count(*) DESC;
+--------------------------------------+
| # 2016-02-20 |
+------------------+------+------------+
| Table | rows | Size in MB |
+------------------+------+------------+
| meta | 0 | 0.03 |
| user | 2 | 0.03 |
| station | 0 | 0.03 |
| snap | 0 | 0.03 |
| observatory | 0 | 0.03 |
| metalink | 0 | 0.02 |
| file_location | 0 | 0.02 |
| user_observatory | 0 | 0.02 |
| station_type | 0 | 0.02 |
| station_status | 0 | 0.02 |
+------------------+------+------------+
+---------------------------------------+
| # 2016-02-20 |
+------------------+-------+------------+
| Table | rows | Size in MB |
+------------------+-------+------------+
| snap | 16810 | 3.03 |
| meta | 7678 | 3.03 |
| user | 2 | 0.03 |
| station | 4 | 0.03 |
| observatory | 3 | 0.03 |
| user_observatory | 0 | 0.02 |
| station_type | 0 | 0.02 |
| station_status | 0 | 0.02 |
| metalink | 0 | 0.02 |
| file_location | 0 | 0.02 |
+------------------+-------+------------+
+---------------------------------------+
| # 2016-02-20 |
+------------------+-------+------------+
| Table | rows | Size in MB |
+------------------+-------+------------+
| snap | 15688 | 3.03 |
| meta | 7755 | 3.03 |
| user | 2 | 0.03 |
| station | 4 | 0.03 |
| observatory | 3 | 0.03 |
| user_observatory | 0 | 0.02 |
| station_type | 0 | 0.02 |
| station_status | 0 | 0.02 |
| metalink | 0 | 0.02 |
| file_location | 0 | 0.02 |
+------------------+-------+------------+
+------------------+--------+------------+
| Table | rows | Size in MB | # tohle je presne 65 dnu ze tri stanic
+------------------+--------+------------+
| snap | 111468 | 19.0781 |
| meta | 55234 | 11.0313 |
| user | 2 | 0.0313 |
| station | 4 | 0.0313 |
| observatory | 3 | 0.0313 |
| user_observatory | 0 | 0.0156 |
| station_type | 0 | 0.0156 |
| station_status | 0 | 0.0156 |
| metalink | 0 | 0.0156 |
| file_location | 0 | 0.0156 |
+------------------+--------+------------+
+----------------------------------------+
| # 2016-02-21 | # tohle je presne 65 dnu ze vsech stanic
+------------------+--------+------------+
| Table | rows | Size in MB |
+------------------+--------+------------+
| snap | 698284 | 109.3438 |
| meta | 578534 | 101.2813 |
| observatory | 12 | 0.0313 |
| user | 2 | 0.0313 |
| station | 13 | 0.0313 |
| metalink | 0 | 0.0156 |
| file_location | 0 | 0.0156 |
| user_observatory | 0 | 0.0156 |
| station_type | 4 | 0.0156 |
| station_status | 0 | 0.0156 |
+------------------+--------+------------+
+----------+------------+-------------------+
| count(*) | id_station | name |
+----------+------------+-------------------+
| 180789 | 14 | HPHK-R2 |
| 108189 | 12 | ZEBRAK-R3 |
| 82668 | 11 | ZVOLENEVES-R1 |
| 68011 | 8 | OBSUPICE-R4 |
| 47780 | 13 | OBSJAROMER-R2 |
| 34789 | 1 | SVAKOV-R7 |
| 17974 | 2 | ZVPP-R3 |
| 14886 | 15 | BPB-R1 |
| 11567 | 9 | NACHODSKO-R3 |
| 5765 | 3 | ZVPP-R4 |
| 1193 | 10 | DDMTREBIC-TEST-R1 |
+----------+------------+-------------------+
+----------------------------------------+
| # 2016-02-21 | # tohle je presne 60 dnu
+------------------+--------+------------+
| Table | rows | Size in MB |
+------------------+--------+------------+
| snap | 713805 | 113.3594 |
| meta | 310438 | 74.7656 |
| user | 2 | 0.0313 |
| station | 13 | 0.0313 |
| observatory | 12 | 0.0313 |
| metalink | 209 | 0.0313 |
| user_observatory | 0 | 0.0156 |
| station_type | 4 | 0.0156 |
| station_status | 4 | 0.0156 |
| file_location | 0 | 0.0156 |
+------------------+--------+------------+
+----------+------------+-------------------+
| count(*) | id_station | name |
+----------+------------+-------------------+
| 97606 | 12 | ZEBRAK-R3 |
| 76281 | 11 | ZVOLENEVES-R1 |
| 60416 | 8 | OBSUPICE-R4 |
| 37940 | 1 | SVAKOV-R7 |
| 15759 | 15 | BPB-R1 |
| 10119 | 9 | NACHODSKO-R3 |
| 6798 | 3 | ZVPP-R4 |
| 1254 | 10 | DDMTREBIC-TEST-R1 |
+----------+------------+-------------------+
+----------+------------+-----------------+
| count(*) | id_station | name |
+------------------+---------+------------+
| Table | rows | Size in MB |
+------------------+---------+------------+
| snap | 1337956 | 215.6094 |
| meta | 753550 | 180.9844 |
| user | 2 | 0.0313 |
| station | 14 | 0.0313 |
| observatory | 13 | 0.0313 |
| metalink | 422 | 0.0313 |
| station_type | 4 | 0.0156 |
| station_status | 4 | 0.0156 |
| file_location | 0 | 0.0156 |
| user_observatory | 0 | 0.0156 |
+------------------+---------+------------+