Commit 18e51d2
fix(database): Use RAM node cache instead of flat-nodes for OSM import
flat-nodes failed with "No space left on device": its file is sized by
the global max OSM node ID (~12.5B x 8 bytes ~= 96GB), not by region
size, so even a single-country extract needs ~96GB free — more than the
import volume has.
Switch to an in-memory node cache (--cache, default 8000MB, overridable
via OSM_CACHE_MB). The host has ample RAM, so this is simpler and faster
than flat-nodes and still keeps way resolution off the DB middle tables.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 70336e7 commit 18e51d2
1 file changed
Lines changed: 11 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
187 | 193 | | |
188 | 194 | | |
189 | 195 | | |
190 | 196 | | |
191 | 197 | | |
192 | 198 | | |
193 | | - | |
194 | | - | |
| 199 | + | |
195 | 200 | | |
196 | 201 | | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | 202 | | |
201 | 203 | | |
202 | 204 | | |
| |||
0 commit comments