Tests: Use "UNION ALL" instead of "UNION" to improve performance

This commit is contained in:
Raul Marin
2018-07-17 12:43:50 +02:00
parent 7d5469ed1c
commit cd31f998dd
4 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -164,7 +164,7 @@ describe('torque', function() {
version: '1.1.0',
layers: [
{ type: 'torque', options: {
sql: "select 1 as id, '1970-01-02'::date as d, 'POINT(0 0)'::geometry as the_geom UNION select 2, " +
sql: "select 1 as id, '1970-01-02'::date as d, 'POINT(0 0)'::geometry as the_geom UNION ALL select 2, " +
"'1970-01-01'::date, 'POINT(1 1)'::geometry",
geom_column: 'the_geom',
cartocss: 'Map { -torque-frame-count:2; -torque-resolution:3; -torque-time-attribute:d; ' +
@@ -359,7 +359,7 @@ describe('torque', function() {
version: '1.1.0',
layers: [
{ type: 'torque', options: {
sql: "select 1 as id, '1970-01-03'::date as d, 'POINT(0 0)'::geometry as the_geom UNION select 2, " +
sql: "select 1 as id, '1970-01-03'::date as d, 'POINT(0 0)'::geometry as the_geom UNION ALL select 2, " +
"'1970-01-01'::date, 'POINT(1 1)'::geometry",
geom_column: 'the_geom',
cartocss: 'Map { -torque-frame-count:2; -torque-resolution:3; -torque-time-attribute:d; ' +