[OSM-dev] Rantings about API 0.6

Iván Sánchez Ortega ivan at sanchezortega.es
Wed Feb 11 00:07:42 GMT 2009

El Martes, 10 de Febrero de 2009, Matt Amos escribió:
> as you say, with any luck the queries for users and changesets will be
> cached. so disabling validations would gain us little and admit the
> possibility that invalid data gets into the DB somehow... not saving
> the changesets on each diff might be a win - but is it big enough to
> justify uglifying the code?

I just finished coding a bulk importer which interfaces directly to the MySQL 
DB instead of interfacing to the API.

It imports my files in one thirteenth* of the time. Even thinking about the 
HTTP overhead and whatnot, I just cannot frakkin' believe that the API 
imposes a 1200% overhead on batch create operations. Twelve-frakkin'-hundred 
percent overhead.

* Number not scientifically accurate.

So, please have this number in mind when thinking about uglyfying the code in 
the name of performance.

Iván Sánchez Ortega <ivan at sanchezortega.es>

Dios Mío! Está lleno de firmas!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.openstreetmap.org/pipermail/dev/attachments/20090211/bedfc7a8/attachment.pgp>

More information about the dev mailing list