From de38f1f6fd00c54e27164b762345f6f7f6d43a9c Mon Sep 17 00:00:00 2001 From: Raul Marin Date: Wed, 3 Jul 2019 15:14:01 +0200 Subject: [PATCH] Tests: Avoid using st_buffer(geography) It's really slow with PROJ6 since it involves creating different projections for almost each point, and that's particularly slow in the new release --- test/acceptance/aggregation.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/acceptance/aggregation.js b/test/acceptance/aggregation.js index 39508837..3dcac93c 100644 --- a/test/acceptance/aggregation.js +++ b/test/acceptance/aggregation.js @@ -96,9 +96,9 @@ describe('aggregation', function () { const POLYGONS_SQL_1 = ` select x + 4 as cartodb_id, - st_buffer(st_setsrid(st_makepoint(x*10, x*10), 4326)::geography, 100000)::geometry as the_geom, + st_buffer(st_setsrid(st_makepoint(x*10, x*10), 4326), 10) as the_geom, st_transform( - st_buffer(st_setsrid(st_makepoint(x*10, x*10), 4326)::geography, 100000)::geometry, + st_buffer(st_setsrid(st_makepoint(x*10, x*10), 4326), 10), 3857 ) as the_geom_webmercator, x as value