Tests: Use "UNION ALL" instead of "UNION" to improve performance
This commit is contained in:
@@ -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; ' +
|
||||
|
||||
Reference in New Issue
Block a user