[OSM-dev] Status of Database Server after 0.4 Upgrade: Fragile

SteveC steve at asklater.com
Mon May 14 01:54:40 BST 2007


Awsomeness. This worked. Map call should be now somewhat faster.  
Needs to be done for the segs too.

Also talking to people it seems that the 500 errors have super  
dropped off?


On 13 May 2007, at 06:37, John McKerrell wrote:

> Thanks for this Steve, good to know what's going on...
>
> On 12 May 2007, at 21:36, SteveC wrote:
>
>> So here's a braindump:
>> <snip>
>> way tags. most of the api code is fairly fast but the api map call
>> does a sql request for every way to get its tags. it shouldn't,
>> someone needs to fix.
>
> I'm probably way off the mark here, but I'm not in the house much to
> try this out, but doesn't :include do something like this? Like on
> the way retrieval line:
>
> ways = Way.find(way_ids)
>
> If we simply added:
>
> ways = Way.find(way_ids, :include => [ :way_tag ] )
>
> Would that do it? With my little experience of rails I really don't
> have a clue, but from the bits of documentation I've seen on :include
> it does suggest that's what we need.
>
> John
>
> _______________________________________________
> dev mailing list
> dev at openstreetmap.org
> http://lists.openstreetmap.org/cgi-bin/mailman/listinfo/dev
>

have fun,

SteveC | steve at asklater.com | http://www.asklater.com/steve/






More information about the dev mailing list