Partitions always include 0, but no partition of value '0' found in country_name? #3908
-
|
Hi all, I was going through the codebase and came across this function in def _get_partitions(conn: Connection) -> Set[int]:
""" Get the set of partitions currently in use.
"""
with conn.cursor() as cur:
cur.execute('SELECT DISTINCT partition FROM country_name')
partitions = set([0])
for row in cur:
partitions.add(row[0])
return partitionsOne thing that stood out to me is that the value I assume this is intentional, but I’m not yet familiar enough with the partitioning logic to understand why partition Pardon me if this ought to be something obvious. I’m still getting oriented to this project and wanted to affirm my understanding before raising an issue blindly. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Examples are offshore oil platforms, buoys, ship wrecks https://www.openstreetmap.org/node/1973965208 I assume the same partition logic was reused on the |
Beta Was this translation helpful? Give feedback.
placex.partition0 is where places not assigned to any country end up. In a planet installation that's about 19.000 records out of 350 million. If you only import one country you might not see any.Examples are offshore oil platforms, buoys, ship wrecks https://www.openstreetmap.org/node/1973965208
I assume the same partition logic was reused on the
country_nametable. On a planet installation I also see no records forcountry_name.partition0.