Reference update times of photon from Nominatim #534
Unanswered
hannesaddec
asked this question in
Q&A
Replies: 3 comments 23 replies
-
Make sure you have tuned Postgresql as per https://nominatim.org/release-docs/latest/admin/Installation/#tuning-the-postgresql-database. How is the load on the Nominatim machine? |
Beta Was this translation helpful? Give feedback.
9 replies
-
@lonvia , please keep in mind that the numbers about average and total query time that my colleague Alfonso has sent to you show only a limited window of time while we have had enabled full logging on our database. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Sarah, thanks for your help.
That is exactly what we were doing. In fact, Alfonso has run the EXPLAIN
while a VACUUM ANALYZE was being run.
I'll rerun the EXPLAIN when the vacuum command finishes and I'll send you
the results.
Thanks again,
Enrique Z.
El mar., 9 mar. 2021 20:17, Sarah Hoffmann ***@***.***>
escribió:
… Looks like the statistics are off. It shouldn't be doing a heap scan on
place_addressline. This is what the explain looks like for me:
Sort (cost=6452.10..6453.33 rows=494 width=567)
Sort Key: p.rank_address DESC, pa.fromarea DESC, pa.distance, p.rank_search DESC
-> Nested Loop (cost=1.14..6430.00 rows=494 width=567)
-> Index Scan using idx_place_addressline_place_id on place_addressline pa (cost=0.57..2187.77 rows=494 width=28)
Index Cond: (place_id = 12345678)
Filter: (isaddress AND (cached_rank_address > 4) AND (address_place_id <> 12345678))
-> Index Scan using idx_place_id on placex p (cost=0.57..8.59 rows=1 width=539)
Index Cond: (place_id = pa.address_place_id)
Try running a VACUUM ANALYSE on place_addressline. If that doesn't help
set random_page_cost = 1.0 in the postgresql configuration.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#534 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALB2CIIST6LUEFLUYAPTGVLTCZX4FANCNFSM4WVGLFBQ>
.
|
Beta Was this translation helpful? Give feedback.
14 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We observe larger update times for 2 languages only as we try to process all EU langauges than reported in the documentation:
Setup: Nominatim version,3.5.1, machine size: 4 cores, 28 Gb RAM), SSD DISK, global extent
Setup: Photon version, 0.3.4, , machine size: 4 cores 14 Gb. RAM). SSD DISK
Command: java -jar /opt/data/photon/photon-0.3.4.jar -nominatim-import -host 10.0.1.17 -port 5432 -database nominatim -user nominatim -password XXXXXX -languages en,es
However this lead to only 25% CPU load with 200 documents/sec processed over 3 days and producing a 26GB index. JAVA/Nominatim/Photon uses only on thread each. We never reached/peaked at RAM/CPU.
Any further advice besides to upgrade Nominatim to 3.6 and photon 0.3.4 ?
Beta Was this translation helpful? Give feedback.
All reactions