Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moran analysis does not finish because of query #224

Open
javisantana opened this issue Nov 7, 2016 · 0 comments
Open

Moran analysis does not finish because of query #224

javisantana opened this issue Nov 7, 2016 · 0 comments
Assignees

Comments

@javisantana
Copy link
Contributor

javisantana commented Nov 7, 2016

Moran take ages

the query from pg_stats_activity is:

 
 /* 4612388e-559c-4762-bedd-a39bd4727db0 */ /* analysis:moran */BEGIN;DELETE FROM analysis_91837cbb3c_872747c77461
aafbd2ff80c5fee0b17dbe1a011a;INSERT INTO analysis_91837cbb3c_872747c77461aafbd2ff80c5fee0b17dbe1a011a SELECT input
_query.*, m.quads, m.significance, m.moran, m.vals
 FROM (SELECT
   row_number() over() as cartodb_id,
   ST_Centroid(ST_Collect(the_geom)) as the_geom,
   cuadrante as category,
   count(1) as value
 FROM (SELECT * FROM crime_lat_long_mxdf) q
 GROUP BY cuadrante) input_query, (
   SELECT * FROM
   cdb_crankshaft.CDB_AreasOfInterestLocal(
     'SELECT
   row_number() over() as cartodb_id,
   ST_Centroid(ST_Collect(the_geom)) as the_geom,
   cuadrante as category,
   count(1) as value
 FROM (SELECT * FROM crime_lat_long_mxdf) q
 GROUP BY cuadrante',
     'value',
     'knn',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants