SQL_SERVER Telegram 855
سلام عزیزان

🚀 یه پست خفن دیگه 🚀
ما توی SQL Server چیزی داریم به اسم Cost Threshold for Parallelism (CTFP).
ولی خب این یعنی چی؟ 🤔

🔧 مثال خودمونی:
همه‌مون حداقل یه بار اسباب‌کشی داشتیم. کارگر باربر رودیدین؟
تا یه حدی بار رو تنهایی مثل بنز 🚛 میندازه رو کولش و می‌بره.
اما وقتی بار خیلی سنگین بشه، دیگه یه نفر جواب نمی‌ده و چند نفر باید با هم دست‌به‌کار شن.

🔍 تشبیه:
هر کارگر = یه CPU 🖥
اون حد توان = CTFP
وقتی هزینه‌ی اجرای یه Query از اون حد بیشتر بشه:
👉 یه CPU تنها نمی‌تونه
👉 چند CPU با هم می‌پرن وسط
👉 و تا وقتی اون بار سنگین جابه‌جا بشه، کارای سبک‌تر باید وایسن تو صف
📌 نتیجه‌گیری:
تا می‌تونید Queryهاتون رو بهینه بنویسید 💡
هزینه کم = سرعت بیشتر = CPU خوشحال 😎

⚖️ نکته مهم در تنظیم CTFP:
اگه خیلی زیاد باشه → یه CPU ممکنه زیر بار سنگین له بشه 😵‍💫
اگه خیلی کم باشه → حتی بارهای سبک هم چند CPU رو درگیر می‌کنن و همه‌چی کند میشه 🐌
14👍7👌2🤨2



tgoop.com/sql_server/855
Create:
Last Update:

سلام عزیزان

🚀 یه پست خفن دیگه 🚀
ما توی SQL Server چیزی داریم به اسم Cost Threshold for Parallelism (CTFP).
ولی خب این یعنی چی؟ 🤔

🔧 مثال خودمونی:
همه‌مون حداقل یه بار اسباب‌کشی داشتیم. کارگر باربر رودیدین؟
تا یه حدی بار رو تنهایی مثل بنز 🚛 میندازه رو کولش و می‌بره.
اما وقتی بار خیلی سنگین بشه، دیگه یه نفر جواب نمی‌ده و چند نفر باید با هم دست‌به‌کار شن.

🔍 تشبیه:
هر کارگر = یه CPU 🖥
اون حد توان = CTFP
وقتی هزینه‌ی اجرای یه Query از اون حد بیشتر بشه:
👉 یه CPU تنها نمی‌تونه
👉 چند CPU با هم می‌پرن وسط
👉 و تا وقتی اون بار سنگین جابه‌جا بشه، کارای سبک‌تر باید وایسن تو صف
📌 نتیجه‌گیری:
تا می‌تونید Queryهاتون رو بهینه بنویسید 💡
هزینه کم = سرعت بیشتر = CPU خوشحال 😎

⚖️ نکته مهم در تنظیم CTFP:
اگه خیلی زیاد باشه → یه CPU ممکنه زیر بار سنگین له بشه 😵‍💫
اگه خیلی کم باشه → حتی بارهای سبک هم چند CPU رو درگیر می‌کنن و همه‌چی کند میشه 🐌

BY SQL Server




Share with your friend now:
tgoop.com/sql_server/855

View MORE
Open in Telegram


Telegram News

Date: |

Telegram channels fall into two types: In handing down the sentence yesterday, deputy judge Peter Hui Shiu-keung of the district court said that even if Ng did not post the messages, he cannot shirk responsibility as the owner and administrator of such a big group for allowing these messages that incite illegal behaviors to exist. Commenting about the court's concerns about the spread of false information related to the elections, Minister Fachin noted Brazil is "facing circumstances that could put Brazil's democracy at risk." During the meeting, the information technology secretary at the TSE, Julio Valente, put forward a list of requests the court believes will disinformation. According to media reports, the privacy watchdog was considering “blacklisting” some online platforms that have repeatedly posted doxxing information, with sources saying most messages were shared on Telegram. There have been several contributions to the group with members posting voice notes of screaming, yelling, groaning, and wailing in different rhythms and pitches. Calling out the “degenerate” community or the crypto obsessives that engage in high-risk trading, Co-founder of NFT renting protocol Rentable World emiliano.eth shared this group on his Twitter. He wrote: “hey degen, are you stressed? Just let it out all out. Voice only tg channel for screaming”.
from us


Telegram SQL Server
FROM American