The OSM planet file is sorted by ID, this makes processing it cumbersom because you need to load in all the ids to know what id is in what geographic location. it would be better to sort the file by geographic location. my idea was to use a geohash as a sorting mechanism. or to use some block system. in any case some sorting would be great.