summaryrefslogtreecommitdiff
path: root/ref_queries
diff options
context:
space:
mode:
authorKapil Viren Ahuja <kvahuja@users.noreply.github.com>2017-02-27 19:12:59 +0530
committerGitHub <noreply@github.com>2017-02-27 19:12:59 +0530
commit65f7c3cddaa7b4a495c283ccf7c9b415bb365f4b (patch)
treeb5c8df31ad2fce3fedcfc564297496d191d3b11f /ref_queries
parent2309c313b648e06b3c441ab8aafd845939dedc48 (diff)
parent3575da2783ba62ddf3784ae814c8fec862c0eb1a (diff)
downloadprocessor-65f7c3cddaa7b4a495c283ccf7c9b415bb365f4b.tar.gz
processor-65f7c3cddaa7b4a495c283ccf7c9b415bb365f4b.zip
Merge pull request #22 from vainglorygame/rewrite
rewrite to use joblib (fixes #20), use updated raw schema, check for …
Diffstat (limited to 'ref_queries')
-rw-r--r--ref_queries/update_roster_match_relationship.sql21
1 files changed, 0 insertions, 21 deletions
diff --git a/ref_queries/update_roster_match_relationship.sql b/ref_queries/update_roster_match_relationship.sql
deleted file mode 100644
index a9c8cdc..0000000
--- a/ref_queries/update_roster_match_relationship.sql
+++ /dev/null
@@ -1,21 +0,0 @@
--- i am thinking how fast slow this will be and if we should do this in DB.
--- maybe we need a script to run a cursor and update records - dont know...
--- a few runs on 35K records was closing my server connection on my shitty laptop
-
--- this will update all roster with match_apiId
-update "roster"
-set "match_apiId" = match."apiId"
-from match
-where (roster."apiId" = roster_1 or roster."apiId" = roster_2)
-
-
--- this is same as before however should only pick empty records
-update "roster"
-set "match_apiId" = match."apiId"
-from match
-where roster."match_apiId" is not null and (roster."apiId" = roster_1 or roster."apiId" = roster_2)
-
-
-
--- this should always return a count of 2 for each match_apiId :)
-select "match_apiId", count(*) from roster group by "match_apiId"