Hi alurg,

the PBF format is very flexible. Originally, it was intended to store OSM objects (nodes, ways, relations) sorted by geographical region. This would have made it possible do get regional extracts very fast. But - in the end - it turned not out that way…

That’s right: first ALL nodes, then ALL ways, and finally ALL relations. This is the usual sequence in several other formats too, e.g. .osm, .osc, .osh, .o5m, .o5c.
I think there are two reasons why PBF format does adhere to this strict OSM object sequence:

  • a lot of programs expect OSM objects being supplied in this order,

  • the PBF file size would increase because you would have to store duplicates of all ways and relations which have nodes in more than one geographical region.

Nevertheless - as mentioned above - the PBF format itself is flexible enough. So I think you can use it to store the OSM objects in every sequence you like. But unfortunately, not every software will cope with other than the unusual object sequence.