Rafa de la Torre
251fe96509
Cosmetic fix, as suggested in PR
2018-02-12 19:24:53 +01:00
Rafa de la Torre
065f56e161
Improve the speed of the aggregation dataview
...
Improve the performance of the aggregation dataview.
Instead of using a CTE (WITH) for filtered_source, which is only used in
one place to calculate ranks, inject it as a subquery.
This way the planner has a chance to ignore uneeded columns as well as
to parallelize the exectution of the window function (WindowAgg in the
query plan).
That is the part that takes most of the time of the query.
The improvement is about 20-40% in speed on PG10 with 4 cores.
2018-02-07 18:10:13 +01:00
Eneko Lakasta
2bd4c9e814
Merge pull request #851 from CartoDB/1259-category-widget-error-group-by-missing
...
use original column name in group by instead of alias
2018-01-29 15:38:07 +01:00
Simon Martín
8c839e214d
changing the value of string
2018-01-26 15:44:21 +01:00
Simon Martín
99421b613c
moving 'other' outside of the query allowing queries of different types
2018-01-26 15:24:21 +01:00
Simon Martín
bc7a556297
removing category cast to string in aggregation
2018-01-26 12:37:10 +01:00
Eneko Lakasta
220f1d6a73
use original column name in group by instead of alias
2018-01-18 15:27:54 +01:00
Raul Marin
031e1253ca
Numeric histograms: Avoid conflicts with 'bin' named columns
2017-12-22 17:12:57 +01:00
Raul Marin
8012d76b68
Timeseries: Avoid collisions with columns named 'timestamp'
2017-12-22 15:58:40 +01:00
Raul Marin
418f5faa11
Date histogram: Reduce the threshold to change in auto mode to 100
2017-12-19 12:09:14 +01:00
Raul Marin
bba6db9dbf
Date histogram: Add second, decade, century and millenium aggregations
2017-12-19 12:09:14 +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
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
743bb0723b
Add query param to define the number of categories to be ranked
2017-11-07 16:14:47 +01:00
Simon Martín
19e2515a8e
Merge pull request #749 from CartoDB/dataview-factory-refactor
...
Dataview factory refactor
2017-10-04 12:18:55 +02:00
Simon Martín
0a507d02bc
Merge branch 'master' into remove-list-dataview
2017-10-04 11:36:45 +02:00
Simon Martín
8fe31c45f3
fix 'this' scope with arrow function
2017-10-04 11:10:17 +02:00
Simon Martín
fe4c22d2ea
Merge branch 'master' into base-dataview-refactor
2017-10-04 11:08:43 +02:00
Simon Martín
d27cce915c
Merge pull request #747 from CartoDB/formula-dataview-refactor
...
Formula dataview refactor
2017-10-04 10:10:57 +02:00
Simon Martín
4fd3c99531
Merge pull request #746 from CartoDB/list-dataview-refactor
...
List dataview refactor
2017-10-02 17:28:54 +02:00
Simon Martín
1e4c63a6dc
Merge pull request #745 from CartoDB/aggregation-dataview-refactor
...
Aggregation dataview refactor
2017-10-02 17:24:12 +02:00
Raul Ochoa
78b75c7a88
Removes list
dataview type
2017-09-28 10:47:44 +00:00
Simon
222cfb90fd
Removing 'self' vars using arrow functions
2017-09-18 12:20:59 +02:00
Simon
f63fab40ed
Removing 'self' vars using arrow functions
2017-09-18 11:34:18 +02:00
Daniel García Aubert
61ea05d1c2
Do not assign a value by default for special float values counters
2017-09-15 14:51:02 +02:00
Daniel García Aubert
64c3e68303
Fix double declaration of 'result'
2017-09-15 14:48:54 +02:00
Daniel García Aubert
d4bb4edd1d
Applyy extract method to check input options
2017-09-15 14:43:41 +02:00
Daniel García Aubert
419b29e609
Do not prefix with '_' template context
2017-09-15 14:43:26 +02:00
Daniel García Aubert
c7ed3d34e8
Use const instead of var to declare variables
2017-09-15 14:43:13 +02:00
Daniel García Aubert
1959a841fd
Use arrow function to take advantage of bound context
2017-09-15 14:26:22 +02:00
Daniel García Aubert
ef5049f28f
Use destructuring assignment to improve readability
2017-09-15 14:07:46 +02:00
Daniel García Aubert
d5d9044686
Use const keyword to declare variables
2017-09-15 14:05:23 +02:00
Daniel García Aubert
5d632d936e
Use ES6 class syntax
2017-09-15 14:04:09 +02:00
Daniel García Aubert
90c4796d4e
Remove empty line
2017-09-15 13:41:54 +02:00
Daniel García Aubert
ada58f6ea2
Use const keyword to declare varibles
2017-09-15 13:35:00 +02:00
Daniel García Aubert
b4ce13e429
Use object shorthand notation
2017-09-15 11:56:59 +02:00
Daniel García Aubert
11f7b38c69
Do not use dot module to build column type query
2017-09-15 11:54:56 +02:00
Daniel García Aubert
9771979b8f
Missing call to super class in constructor
2017-09-15 10:59:07 +02:00
Daniel García Aubert
c00a93f414
Use destruturing assignment to format the formula result
2017-09-15 10:58:11 +02:00
Daniel García Aubert
ecbc7a28e7
Declare constants with const keyword
2017-09-15 10:49:20 +02:00
Daniel García Aubert
68dfed8b85
Use ES6 class syntax
2017-09-15 10:48:44 +02:00
Daniel García Aubert
2437288d9d
Replace widget word by dataview
2017-09-15 10:37:51 +02:00
Daniel García Aubert
9c64d674b3
Do not use underscore
2017-09-14 18:02:13 +02:00
Daniel García Aubert
a4ecc18f2f
Use default values for constructor's arguments
2017-09-14 17:57:24 +02:00
Daniel García Aubert
1063d81c1b
Rename debug namespace
2017-09-14 17:56:40 +02:00
Daniel García Aubert
dcb9b8ec52
Rename BaseWidget by BaseDataview
2017-09-14 17:56:17 +02:00