SQL Server 足迹

发布于 2024-08-22 16:00:22 字数 153 浏览 6 评论 0原文

SQL Server 中的足迹是什么意思?

这是来自 MSDN 的片段“减少昂贵查询的锁占用空间”LINK

What does it mean by footprints in SQL Server?

here's a snippet from MSDN "reduce the lock footprint of expensive queries" LINK

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(5

话少心凉 2024-08-29 16:00:22

在这种情况下,足迹意味着所制作的不同锁的数量。例如,锁越多,占用空间就越大。

The footprint in this case means the number of different locks being made. e.g. the more locks - the larger the footprint.

╰◇生如夏花灿烂 2024-08-29 16:00:22

“足迹”并不专门与 SQL Server 相关,而是一个通用术语,指的是系统中受其他因素影响的部分。它与“生态足迹”或“碳足迹”等术语中使用的“足迹”相同。在这种情况下,就是说查询可以仅凭借运行来锁定其他表,这可以阻止其他查询访问相同的数据。因此,影响大量表的查询的“足迹”很大,并且会减慢系统速度。但是,如果您减少“占用空间”,使其影响不那么大,那么其他查询将可以自由运行并提高性能。

"Footprint" doesn't specifically relate to SQL Server, but is a general term referring to the parts of a system that are affected by something else. It's the same "footprint" as is used in terms like "ecological footprint" or "carbon footprint". In this case, it is saying that queries can lock other tables just by virtue of running, and this can block other queries from accessing the same data. Thus the "footprint" of a query that affects a lot of tables is large and will slow the system down. But if you reduce the "footprint" so that it doesn't affect so much, then other queries will be free to run and improve performance.

守望孤独 2024-08-29 16:00:22

这意味着资源使用率会更低。在具体的例子中,无论他们谈论什么,都会使用更少的锁。这不是 sql server 的事情 - 您可以指减少内存占用的进程,或减少某些数据的存储占用。

It means that the resource usage will be lower. In the sepcific example, whatever they are talking about will use fewer locks. This is not a sql server thing - you could refer to a process reducing its memory footprint, or reducing the storage footprint of some data.

清风不识月 2024-08-29 16:00:22

“足迹”通常是指对有限资源的某种使用。将其视为“对某物可用性的影响”。如果某项内存占用较大,则会影响可用内存量。如果某些东西减少了锁占用空间,则意味着它会影响所采用的锁的数量(在本例中是积极的)。

"Footprint" genereally refers to some sort of usage of limited resources. Think of it as "impact on the availability of something". If something has a large memory footprint, it affects the amount of free memory. If something reduces the lock footprint it means that it impacts the number of locks taken (positively, in this case).

情愿 2024-08-29 16:00:22

“足迹”一词的使用是指查询锁定的数据量、锁的数量和类型的组合,一个表级锁比 10 个行级锁影响更多的数据。

减少锁足迹的方法包括

  1. 减少接触表
  2. 使用不同的
  3. 使用锁定提示的 隔离级别
  4. 将长时间运行的查询分解为多个较短运行的查询,以便可以释放第一部分的锁定。

This use of the word footprint referes to the amount of data that is locked by your query, a combination of the number and type of locks, one table level lock effecting more data then 10 row level locks.

Ways of decreasing your lock foot print would include

  1. touching less tables
  2. using a different isolation level
  3. using locking hints
  4. breaking the long running query into multiple shorter running querys so locks from the first part can be freed.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文