这个语句是否命中数据库?
我有一个 .NET 应用程序,它执行如下语句:
SELECT ST_GeomFromKML('
<LineString>
<coordinates>-71.1663,42.2614
-71.1667,42.2616</coordinates>
</LineString>');
不需要表或 where 子句,我基本上将它用作转换器。
所以我的问题是,当我发出此命令时,我的应用程序是否会命中数据库,或者本地 postgress dll 会在内存中处理它吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它将访问数据库,这基本上意味着它会比需要的速度慢得多。
您应该尝试编写一个不使用数据库来执行转换的方法,然后调用该方法。
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.
我会访问数据库,但是开销并没有那么大,通常你不会注意到这一点。
I will hit the database, however the overhead is not so huge, usually you won't notice that.