开发者

LOCK TABLE as a prepared statement?

开发者 https://www.devze.com 2023-01-03 17:06 出处:网络
Does it make sense to prepare a LOCK TABLE statement?I\'m not really concerned about efficiency here, because it would only execute once a transaction and at most a few times a minute.I\'m more wonder

Does it make sense to prepare a LOCK TABLE statement? I'm not really concerned about efficiency here, because it would only execute once a transaction and at most a few times a minute. I'm more wondering if the concept is meaningful.

I'm usi开发者_开发知识库ng the PostgreSQL JDBC driver, if it matters.


Performance aside, preparing statements is useful when you have parameters in your query. Since your query has no parameters you don't need to prepare it.

0

精彩评论

暂无评论...
验证码 换一张
取 消