这个语句是否命中数据库?

发布于 2024-12-13 03:15:36 字数 346 浏览 0 评论 0原文

我有一个 .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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

々眼睛长脚气 2024-12-20 03:15:36

它将访问数据库,这基本上意味着它会比需要的速度慢得多。

您应该尝试编写一个不使用数据库来执行转换的方法,然后调用该方法。

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.

一影成城 2024-12-20 03:15:36

我会访问数据库,但是开销并没有那么大,通常你不会注意到这一点。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文