From 688262d611bae71262304d59252123e73c10f341 Mon Sep 17 00:00:00 2001 From: randomdan Date: Mon, 16 Aug 2010 19:15:19 +0000 Subject: Add option to use a temporary view instead of a table to reduce WAL churn during SqlMerge --- gentoobrowse/console/bugassociate.xml | 2 +- gentoobrowse/console/packageimport.xml | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gentoobrowse/console/bugassociate.xml b/gentoobrowse/console/bugassociate.xml index b026205..626638e 100644 --- a/gentoobrowse/console/bugassociate.xml +++ b/gentoobrowse/console/bugassociate.xml @@ -2,7 +2,7 @@ - + SELECT b.bugid, p.packageid FROM bugs b, packages p, categories c diff --git a/gentoobrowse/console/packageimport.xml b/gentoobrowse/console/packageimport.xml index 84872ed..12bca02 100644 --- a/gentoobrowse/console/packageimport.xml +++ b/gentoobrowse/console/packageimport.xml @@ -3,14 +3,14 @@ xmlns:project2="http://project2.randomdan.homeip.net"> - + SELECT DISTINCT (REGEXP_MATCHES(filename, '^[^/]+'))[1] AS name FROM files WHERE filetypeid = 1 name - + SELECT c.categoryid, f.name, fc.content AS description FROM ( SELECT MAX(fileid) AS fileid, @@ -30,7 +30,7 @@ - + SELECT packageid, version, fileid AS ebuildid, ebuildversion_constructor(version) AS versioninst FROM ( SELECT f.fileid, @@ -51,7 +51,7 @@ - + SELECT DISTINCT f.fileid AS ebuildid, REGEXP_SPLIT_TO_TABLE(fc.content, ' ') AS arch FROM filecache fc, files f @@ -65,7 +65,7 @@ - + SELECT DISTINCT fc.fileid AS ebuildid, REGEXP_SPLIT_TO_TABLE(fc.content, ' ') AS use FROM filecache fc, files f @@ -79,7 +79,7 @@ - + SELECT DISTINCT e.packageid, REGEXP_SPLIT_TO_TABLE(fc.content, ' ') AS url FROM filecache fc, ebuilds e, files f @@ -94,7 +94,7 @@ - + SELECT fileid AS ebuildid, packageid, COALESCE(slot, '') AS slot, COALESCE(op, '') AS op, COALESCE(versionspec, '') AS versionspec, COALESCE(flags, '') AS flags -- cgit v1.2.3