Giter Club home page Giter Club logo

Comments (6)

rmarianski avatar rmarianski commented on May 14, 2024

8 minutes is unexpectedly high. Usually, the slowest part is the database query. I'd recommend logging slow queries in postgresql to see if anything comes up. If that is indeed the slow part, run an explain analyze on it; maybe it's missing an index.

from vector-datasource.

leblowl avatar leblowl commented on May 14, 2024

Ok cool, I'll try to gather some log data & figure out what's taking so long. I am running this on a pretty fast machine with around 24 cores. What sort of time should I expect for rendering a single tile?

from vector-datasource.

rmarianski avatar rmarianski commented on May 14, 2024

The slowest tiles should be on the order of seconds. When I run your curl example, it kicks back right away for me.

curl -s http://localhost:8080/buildings/16/19293/24641.mvt > /dev/null  0.01s user 0.00s system 4% cpu 0.183 total

Btw, I do have data in that tile, but I've loaded a nyc extract.

from vector-datasource.

leblowl avatar leblowl commented on May 14, 2024

Awesome, I'd like to get there!

from vector-datasource.

leblowl avatar leblowl commented on May 14, 2024

Okay, so it turns out it was a connection issue. I threw in a bunch of prints & found it was hanging on a connect call for this query: https://github.com/mapzen/TileStache/blob/integration-1/TileStache/Goodies/VecTiles/server.py#208-209.

So then diggin in a little, I found this: host – database host address (defaults to UNIX socket if not provided) - from psycopg2.connect documentation.

mapzen/vector-datasource/tilestache.cfg sets the host to localhost on all the dbinfo sections & causes super slow connections somehow, atleast with my current postgresql config. Not sure. But after removing the host & port entries in my config, it's lightning fast.

time curl http://localhost:5000/buildings/16/0/6.mvt
real 0m0.269s

from vector-datasource.

rmarianski avatar rmarianski commented on May 14, 2024

Glad that you were able to resolve it. Thanks for the update.

from vector-datasource.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.