<div dir="ltr">Hi Paul,<br><div class="gmail_extra"><br><div class="gmail_quote">On 9 July 2013 17:34, Paul Norman <span dir="ltr"><<a href="mailto:penorman@mac.com" target="_blank">penorman@mac.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've been working on expanding cgimap to use pgsnapshot. In the process I've<br>
come across some changes to the schema I'd like to propose. The changes<br>
basically consist of removing the giant (237GB) way_nodes table.<br>
<br>
Would this be best to do within the existing pgsnapshot tasks and by<br>
incrementing the schema version? Should it be in new tasks based on those?<br>
<br>
Advice is welcome.<br></blockquote><div><br></div><div>Good question. I can't see any reason why it couldn't be done by incrementing the schema version. The main downside will be that consumers of the schema will have to upgrade their apps. That's not a bad thing if there's an advantage to doing so.<br>
<br></div><div>For now I'd suggest doing it as an upgrade. If it becomes a major issue for people we can possibly create a snapshot of the existing tasks under a different name that will let them continue to be used (but not actively maintained) in much the same way the old pgsimple tasks continue to exist. But I'd rather not do that without a good reason.<br>
<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Schema details:<br>
<br>
I want to add a nodes.ways bigint[] column to the nodes table and use it for<br>
node->ways lookups, then use the existing ways.nodes bigint[] column for<br>
way->nodes<br></blockquote><div><br></div><div>What is the motivation for this? I'm guessing that performance is likely to increase because we get to make better use of geo-spatial indexes ...<br><br></div><div>It seems like a good idea. I haven't had a look at the existing queries to determine the impact of making this change.<br>
</div><div><br></div><div>Brett<br></div><br></div></div></div>