Commit Graph
179 Commits
Author SHA1 Message Date
Simon Martín 2134bf898a check user template limit in the right way 2018-08-01 13:13:25 +02:00
Simon Martín f27d5ba7d1 unneeded check 2018-08-01 12:40:22 +02:00
Simon Martín 09a67871fb manage JSON.stringify sync error 2018-08-01 12:38:50 +02:00
Simon Martín cec9994add style details 2018-08-01 12:33:59 +02:00
Simon Martín d45d0018d2 self to this 2018-08-01 12:32:20 +02:00
Simon Martín 410cbd082c manage errors 2018-08-01 12:26:40 +02:00
Simon Martín fd875c41c7 remove step 2 2018-08-01 12:20:01 +02:00
Simon Martín 750798d0a3 ensuring redis_pool connection release 2018-08-01 12:10:09 +02:00
Simon Martín 04faaea10d remove unneded check 2018-08-01 11:49:40 +02:00
Simon Martín 74831c9b7f using ... operator instead of apply 2018-08-01 11:48:12 +02:00
Simon Martín 5471a218eb return errors 2018-08-01 11:39:07 +02:00
Simon Martín 79f2a8dde9 vars refactor: that to this, ... 2018-08-01 11:30:17 +02:00
Simon Martín 5c0b7487f7 using calbacks instead of step 2018-08-01 11:25:55 +02:00
Simon Martín 23ef884e9b remove step 1 2018-07-31 10:26:46 +02:00
Simon Martín bb24b1dfcc indentation 2018-07-31 10:25:56 +02:00
Javier Goizueta e0cd1aba29 Refactor: move common token substitutions to query-utils 2018-06-18 13:15:45 +02:00
Javier Goizueta 90efe14bfb Merge pull request #971 from CartoDB/cartovl-130
Send dates as unix epoch instead strings in .mvt files
2018-06-13 13:07:35 +02:00
elenatorro 79962a7566 Refactor long line 2018-05-31 19:07:57 +02:00
elenatorro 4213e3163a Move queryPromise function 2018-05-31 18:37:43 +02:00
Eneko Lakasta 6414cd52c0 Merge branch 'master' into remove-auth-fallback 2018-05-30 17:53:24 +02:00
Javier Goizueta 26da872704 Leave sample exclude_columns for later 2018-05-28 17:37:45 +02:00
Javier Goizueta 4bb8914d9a Add parameters to select metadata sample columns 2018-05-28 16:08:31 +02:00
Javier Goizueta c1feaecbcb Merge branch 'master' into refactor-metadata
# Conflicts:
#	lib/cartodb/backends/layer-stats/mapnik-layer-stats.js
2018-05-23 12:12:36 +02:00
Javier Goizueta 94c34eeb23 Small change to use const 2018-05-23 11:15:20 +02:00
Javier Goizueta 97b4e19777 Add metadata parameter for NULL categories 2018-05-22 13:00:18 +02:00
Javier Goizueta ebc086106f Refactor metadata queryPromise helper
This function to adapt query execution as a Promise was unnecessary complex.
2018-05-21 17:33:03 +02:00
Javier Goizueta 6384f5538c Rename variable for clarity 2018-05-21 17:06:53 +02:00
Javier Goizueta d7a90e6be4 Remove debugging comment 2018-05-21 15:54:52 +02:00
Javier Goizueta b233f18a0f Modernize code copied from SQL API 2018-05-21 15:43:23 +02:00
Javier Goizueta 11cdcc65ad Add safety limit to sample metadata
The sampling probability is now being computed using an estimate of the table row count
This could led to too high probabilities (to large samples) if the estimate is not accurate.
To avoid potential problems with large samples we've added a LIMIT to the sampling queries.
2018-05-21 12:45:16 +02:00
Javier Goizueta fecd63e582 Fix bug 2018-05-21 11:59:49 +02:00
Javier Goizueta 38e55367b1 Revert error behaviour for estimatedFeatureCount
Keep current production behavior of ignoreing errors when computing this stat and returning -1.
This is done as to no introduce any instability in production at the moment.
2018-05-21 11:44:52 +02:00
Javier Goizueta 4e99ff1c39 Fix token substitution for stat queries 2018-05-18 22:25:32 +02:00
Javier Goizueta 391ac51f0f Implement metadata queries with plain Promises
Remove usage of PhasedExecution
This achives better query execution granularity and
removes questionable usage of shared results object.
It introduces a couple of behavior changes:
* estimatedFeatureCount desn't ignore errors now
* sample always uses estimatedFeatureCount,even if the actual count is also computed.
2018-05-18 15:33:07 +02:00
Javier Goizueta 4bc8fb207a Use sql_raw for query without aggregation 2018-05-18 15:29:46 +02:00
Javier Goizueta 012fa91e83 Typo 2018-05-16 14:45:34 +02:00
Javier Goizueta 3af1182206 Rename misleading function argument 2018-05-16 14:45:19 +02:00
Javier Goizueta b906f88a44 Slight refactor 2018-05-11 19:32:03 +02:00
Javier Goizueta 24b1b53ba0 Merge branch 'master' into metadata 2018-05-11 18:58:38 +02:00
Javier Goizueta 53fae9fbbd Comment 2018-05-11 18:57:14 +02:00
Javier Goizueta 34ad3fcfe8 Add aggregated stat for testing
Also change aggregated stats to not filter a single tile
2018-05-11 14:18:31 +02:00
Javier Goizueta 68b3cb8a34 Fix estimated row count with aggregations
All stats are computed now pre-aggregation
Code to help compute post-aggregation stats remains for testing
2018-05-11 13:44:43 +02:00
Javier Goizueta cae4dd81c9 WIP: fix problems for aggregations & metadata 2018-05-10 19:12:47 +02:00
Javier Goizueta 944ce80c1e Revert debugging change 2018-05-09 11:42:53 +02:00
Javier Goizueta d8ef8cb12f Debug travis test failures 2018-05-09 11:08:02 +02:00
Javier Goizueta eea7bed2f3 Slightly more elegant results of queries 2018-05-08 20:41:42 +02:00
Javier Goizueta 741bcd1a80 Metadata fixes 2018-05-08 20:07:20 +02:00
Javier Goizueta 7d68a2967f Fix: callback expected errors in first argument 2018-05-08 13:08:26 +02:00
Javier Goizueta c647f852d6 Refactor metadata queries execution
Also fixed bug where sampling query generation needed results of count queries
2018-05-08 11:09:09 +02:00
Javier Goizueta 7561635b24 WIP:add layer metadata 2018-05-07 19:03:19 +02:00