-
Notifications
You must be signed in to change notification settings - Fork 22
/
speedUp.sh
executable file
·20 lines (19 loc) · 969 Bytes
/
speedUp.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
cd ~/domoticz
sudo apt-get -y install sqlite3
sqlite3 domoticz.db << EOF
CREATE INDEX IX_MM_ID_DATE ON MultiMeter(DeviceRowID, Date);
CREATE INDEX IX_M_ID_DATE ON Meter(DeviceRowID, Date);
CREATE INDEX IX_Temp_ID_DATE ON Temperature(DeviceRowID, Date);
CREATE INDEX IX_Rain_ID_DATE ON Rain(DeviceRowID, Date);
CREATE INDEX IX_Wind_ID_DATE ON Wind(DeviceRowID, Date);
CREATE INDEX IX_LightingLog_ID_DATE ON LightingLog(DeviceRowID, Date);
CREATE INDEX IX_Percentage_ID_DATE ON Percentage(DeviceRowID, Date);
CREATE INDEX IX_CAL_MM_ID_DATE ON MultiMeter_Calendar(DeviceRowID, Date);
CREATE INDEX IX_CAL_M_ID_DATE ON Meter_Calendar(DeviceRowID, Date);
CREATE INDEX IX_CAL_Temp_ID_DATE ON Temperature_Calendar(DeviceRowID, Date);
CREATE INDEX IX_CAL_Rain_ID_DATE ON Rain_Calendar(DeviceRowID, Date);
CREATE INDEX IX_CAL_Wind_ID_DATE ON Wind_Calendar(DeviceRowID, Date);
CREATE INDEX IX_CAL_Percentage_ID_DATE ON Percentage_Calendar(DeviceRowID, Date);
.exit
EOF