diff options
author | Tim Laszlo <tim.laszlo@gmail.com> | 2012-06-04 14:05:25 -0500 |
---|---|---|
committer | Tim Laszlo <tim.laszlo@gmail.com> | 2012-06-04 14:25:58 -0500 |
commit | 6633ba7144dbc884732ee521d380456bbb2146f7 (patch) | |
tree | d61dba938d44a296406ed1f7b71d182b2e81e95f /src/lib/Bcfg2/Server/Reports/reports/sql/client.sql | |
parent | 48d77ab49b8c8e69c38b2b659ba4b31e781443c8 (diff) | |
download | bcfg2-6633ba7144dbc884732ee521d380456bbb2146f7.tar.gz bcfg2-6633ba7144dbc884732ee521d380456bbb2146f7.tar.bz2 bcfg2-6633ba7144dbc884732ee521d380456bbb2146f7.zip |
DBStats: Remove custom sql
Remove the custom sql file. This failed to install in MySQL.
Use django to index Interaction.timestamp instead of custom sql.
Diffstat (limited to 'src/lib/Bcfg2/Server/Reports/reports/sql/client.sql')
-rw-r--r-- | src/lib/Bcfg2/Server/Reports/reports/sql/client.sql | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/lib/Bcfg2/Server/Reports/reports/sql/client.sql b/src/lib/Bcfg2/Server/Reports/reports/sql/client.sql deleted file mode 100644 index 28e785450..000000000 --- a/src/lib/Bcfg2/Server/Reports/reports/sql/client.sql +++ /dev/null @@ -1,7 +0,0 @@ -CREATE VIEW reports_current_interactions AS SELECT x.client_id AS client_id, reports_interaction.id AS interaction_id FROM (select client_id, MAX(timestamp) as timer FROM reports_interaction GROUP BY client_id) x, reports_interaction WHERE reports_interaction.client_id = x.client_id AND reports_interaction.timestamp = x.timer; - -create index reports_interaction_client_id on reports_interaction (client_id); -create index reports_client_current_interaction_id on reports_client (current_interaction_id); -create index reports_performance_interaction_performance_id on reports_performance_interaction (performance_id); -create index reports_interaction_timestamp on reports_interaction (timestamp); -create index reports_performance_interation_interaction_id on reports_performance_interaction (interaction_id); |