1

I have a .NET application which executes a statement like this:

SELECT ST_GeomFromKML('
        <LineString>
            <coordinates>-71.1663,42.2614 
                -71.1667,42.2616</coordinates>
        </LineString>');

There is no need for tables or where clause, I'm basically using it as a converter.

So my question is does my application hit the database when i issue this command or does the local postgress dll take care of it in memory?

Jonathan Hall
  • 75,165
  • 16
  • 143
  • 189
capdragon
  • 14,565
  • 24
  • 107
  • 153

2 Answers2

1

It will hit the database, which basically means that it will be much slower than it needs to be.

You should try to write a method thaat performs the conversion without using the database, and call that method instead.

Mark Byers
  • 811,555
  • 193
  • 1,581
  • 1,452
0

I will hit the database, however the overhead is not so huge, usually you won't notice that.

Szymon Lipiński
  • 27,098
  • 17
  • 75
  • 77