From cc62eb3511fa0739deef22fe534d4eabffa44298 Mon Sep 17 00:00:00 2001 From: Jorg Tretter Date: Thu, 6 May 2021 09:24:29 -0500 Subject: [PATCH] Update with latest; changed target location --- mergeData.sql | 14 +++++++------- prepareStage.sql | 8 ++++---- runWin.cmd | 5 +++-- stats.sql | 4 ++-- 4 files changed, 16 insertions(+), 15 deletions(-) diff --git a/mergeData.sql b/mergeData.sql index 5eecba1..1291947 100644 --- a/mergeData.sql +++ b/mergeData.sql @@ -1,7 +1,7 @@ -select 'Merging Stage into requests'; -insert into requests select * from stage where not exists (select 1 from requests where requests.id=stage.id); -drop table stage; - -select 'Vacuuming the DB'; -vacuum; - +select 'Merging Stage into requests'; +insert into requests select * from stage where not exists (select 1 from requests where requests.id=stage.id); +drop table stage; + +select 'Vacuuming the DB'; +vacuum; + diff --git a/prepareStage.sql b/prepareStage.sql index 4b77774..dc3a2d7 100644 --- a/prepareStage.sql +++ b/prepareStage.sql @@ -1,5 +1,5 @@ -select 'Preparing Stage'; -drop table if exists stage; -create table stage (id text, timestamp datetime, name text, success boolean, resultcode int, duration double, performancebucket string, userid string); -create table if not exists requests (id text, timestamp datetime, name text, success boolean, resultcode int, duration double, performancebucket string, userid string); +select 'Preparing Stage'; +drop table if exists stage; +create table stage (id text, timestamp datetime, name text, success boolean, resultcode int, duration double, performancebucket string, userid string); +create table if not exists requests (id text, timestamp datetime, name text, success boolean, resultcode int, duration double, performancebucket string, userid string); select 'Filling Stage'; \ No newline at end of file diff --git a/runWin.cmd b/runWin.cmd index 3428ad6..34d4c8a 100644 --- a/runWin.cmd +++ b/runWin.cmd @@ -1,3 +1,4 @@ -curl -s -d "" -X POST "https://deadswitch.kawomi.com/api/v1?topic=kcc.process.recordAppInsights&secs=7200&email=joe.tretter@kcc.com,joerg.tretter@gmail.com" +curl -s -k -d "" -X POST "https://deadswitch.kawomi.com/api/v1?topic=kcc.process.recordAppInsights&secs=7200&email=joe.tretter@kcc.com,joerg.tretter@gmail.com" C:\cygwin64\bin\sh.exe -li ~/RecordAppInsights/recordAppInsights.sh -copy /y db.sqlite3 \\ustca239\JoesHop\TipsPerfDB\ \ No newline at end of file +mkdir "\\kcfiles\share\Corporate\ITS\Application Solutions\Shared\TIPS\UsageReport" +copy /y db.sqlite3 "\\kcfiles\share\Corporate\ITS\Application Solutions\Shared\TIPS\UsageReport\" \ No newline at end of file diff --git a/stats.sql b/stats.sql index 11f11f4..a6e3487 100644 --- a/stats.sql +++ b/stats.sql @@ -1,2 +1,2 @@ -select 'stage', count(*) from stage; -select 'requests ', count(*) from requests; +select 'stage', count(*) from stage; +select 'requests ', count(*) from requests;