[pgrouting-users] Performance problems with pgr_dijkstra
daniel at georepublic.de
Tue Feb 10 17:54:47 PST 2015
> I don't understand, why the procedure lasts so much longer at the map of
> Europe although both
> temporary routing tables are almost identical in size and don't depend on
> the rest of the databases
> (no joins or other complicated stuff). Maybe someone has an idea and can
> point me in the right
First of all I'm not sure, if I really understand what you mean with
"creating a temporary table". Did you run "CREATE TEMP TABLE ..."?
You're right, that with pgRouting the amount of data selected from the
network table matters. And the fastest way to select only a part of the
network table is by selecting a bounding box. You should have an index on
your geometry column as well. Then you don't need to create temporary
Back to your question: as far as I remember, the size of ID's can matter. I
experienced this when I used data, that had already source and target ID's
in place, which all had the same number of digits. Renumbering (starting
from 1) helped to improve the speed. Though I can't tell this is the reason
in your case.
Have you also run VACUUM and ANALYZE on your table?
Georepublic UG & Georepublic Japan
eMail: daniel.kastl at georepublic.de
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Pgrouting-users