Daniel García Aubert
cc68b84212
Extract checkLayerAggregationMetadata method
2017-12-11 19:06:53 +01:00
Daniel García Aubert
446449bbde
Move variable declaration close to the place that it's used
2017-12-11 18:47:20 +01:00
Daniel García Aubert
b1f788fb57
Remove unuseful callback
2017-12-11 18:42:03 +01:00
Daniel García Aubert
f80e7112bc
Merge branch 'mapconfig-aggregation' of github.com:CartoDB/Windshaft-cartodb into mapconfig-aggregation
2017-12-11 18:35:54 +01:00
Daniel García Aubert
68f967e582
Extract adaptLayer method
2017-12-11 18:34:22 +01:00
Javier Goizueta
2edcbb4724
Implement aggregation queries.
...
Implmented for placements: centroid, point-gird, point-sample.
Aggregated columns not yet implemented (only count).
Aggregation could be made more efficient by using quadkeys
2017-12-11 18:33:06 +01:00
Daniel García Aubert
006dd86614
Merge branch 'master' into mapconfig-aggregation
2017-12-11 17:36:58 +01:00
Daniel García Aubert
dab204ea71
Do not aggregate if rows cout is lower than threshold or the layer's sql has geometries distinct of points
2017-12-11 17:32:06 +01:00
Raul Marin
7c5b7641d8
Date histogram: Add missing GROUP BY column
2017-12-11 11:27:13 +01:00
Raul Marin
1b405e42c2
Date histogram optimizations
2017-12-11 11:27:13 +01:00
Raul Marin
088a8b81a6
Timeseries tests: Set timestamps to the start of the aggregations
...
Also, increase the end of the range check so it includes some data
2017-12-11 11:27:13 +01:00
Raul Marin
243e982bd6
Optimize formulae queries
2017-12-11 11:27:13 +01:00
Raul Marin
dfe01c836c
Escape getQueryRowCount with $$
2017-12-11 11:27:13 +01:00
Raul Marin
fcbf5ffcc5
Move sql helper functions to query-utils.js
2017-12-11 11:27:13 +01:00
Raul Marin
90c9ad18e0
Optimize histogram queries
2017-12-11 11:27:13 +01:00
Daniel García Aubert
214d684fcc
Adapt layer when is vector only map-caonfig
2017-12-05 20:39:30 +01:00
Daniel García Aubert
e7592ee570
Improve error message
2017-12-05 17:44:52 +01:00
Daniel García Aubert
7b35701fa8
Extract method
2017-12-05 16:50:18 +01:00
Daniel García Aubert
4f8b541010
Mark aggregation queries
2017-12-05 13:12:25 +01:00
Daniel García Aubert
55dd049812
Be able to skip aggregation to create a layergroup with aggregation defined already
2017-12-05 12:59:32 +01:00
Daniel García Aubert
855f47e446
Detect incompatible CartoCSS or interactivity for raster aggregation
2017-12-04 19:48:06 +01:00
Daniel García Aubert
077f19d506
Integrate aggregation and get metadata for layergroup
2017-12-04 12:40:53 +01:00
Daniel García Aubert
52630b8084
Minor improvementes
2017-12-01 17:06:42 +01:00
Daniel García Aubert
6f04214f5d
Simplify to pass test
2017-12-01 17:06:03 +01:00
Daniel García Aubert
f376a7cdd5
Use aggregation adapter before the overviews one
2017-12-01 17:05:01 +01:00
Daniel García Aubert
0887e5d5f7
Extract method
2017-12-01 15:43:15 +01:00
Daniel García Aubert
d01857923e
Plug aggregation mapconfig adapter
2017-11-30 19:31:00 +01:00
Daniel García Aubert
deb29f2c77
Implement aggregation mapconfig adapter (happy case)
2017-11-30 19:20:59 +01:00
Daniel García Aubert
d937ed31d5
Add params to instantiate aggregation
2017-11-30 19:10:57 +01:00
Daniel García Aubert
73ae736603
Add aggregation proxy
2017-11-30 19:02:30 +01:00
Daniel García Aubert
1767b83d09
Aggregation query models: bootstrap hierarchy classes
2017-11-30 15:34:20 +01:00
Daniel García Aubert
1a78b8a75a
Merge branch 'master' into middlewarify-analyses-controller
2017-11-23 11:47:57 +01:00
Daniel García Aubert
e131df601c
Use ES6 template string for route definition
2017-11-19 14:05:20 +01:00
Daniel García Aubert
bee04e2553
Usr ES6 string templates
2017-11-19 12:51:35 +01:00
Daniel García Aubert
37111f396d
Unify get catalog and tables middlewares
2017-11-19 12:37:09 +01:00
Daniel García Aubert
4df46fe5ea
Move creation of PG client to a middleware
2017-11-17 19:20:42 +01:00
Daniel García Aubert
b1b2054f0a
Split metadata function into two middlewares
2017-11-17 19:14:31 +01:00
Daniel García Aubert
c1f2b96bfc
Remove step from catalog middleware
2017-11-17 18:32:46 +01:00
Daniel García Aubert
804c6645fa
Make catalog method a regular middleware factory
2017-11-17 18:28:37 +01:00
Daniel García Aubert
5d6ccc07fd
Move functionality that prepares catalog to be used as response
2017-11-17 18:25:13 +01:00
Daniel García Aubert
a585ba5480
Use early retutn node pattern
2017-11-17 18:07:19 +01:00
Simon Martín
0aaafa2068
Merge branch 'master' into res-locals-user
2017-11-16 11:03:43 +01:00
Simon Martín
ccce598b04
Merge branch 'master' into res-locals-user
2017-11-15 18:37:49 +01:00
Simon Martín
667b2a9cb1
removing underscore dependency in locals middleware
2017-11-15 16:56:21 +01:00
Simon Martín
298882f410
remove with spaces and adding line as EOF
2017-11-15 15:07:30 +01:00
Simon Martín
22e3016cd3
Merge branch 'master' into timeoutVectorImage
2017-11-14 15:54:16 +01:00
Daniel García Aubert
d5c552a03a
Move functionality that sets cache control header to a middleware
2017-11-14 13:53:42 +01:00
Daniel García Aubert
a5347c27e3
Move sendResponse method to a middleware
2017-11-14 13:49:12 +01:00
Daniel García Aubert
27521964c7
Remove schema from analyses catalog query perfoming that query in the same way that we do for pooling the node status in analyses backend
2017-11-14 12:01:21 +01:00
Daniel García Aubert
bdf4827300
Fix bad call to next middleware callback
2017-11-14 11:28:06 +01:00