نسبة الإصابة وما تخفيه
في هذا الدرس 4 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
read hit ratio correctly.
الموضوعات المخطط لها
- Hit ratio = hits / (hits + misses). Aim depends on cost of a miss, not a magic number.
- A high ratio can hide a few very expensive misses or a flood of tiny cheap hits.
- Look at it per cache and per key group, plus miss latency and load on the database.
- A cold start has a 0% ratio; measure after warm-up.
- A hit ratio says nothing about stale data served.
تفاصيل المخطط المبدئي
عرض عملي
two caches both at 90%: one saves 1 ms per hit, the other saves 800 ms; the second is worth far more.
اختبر فهمك
Does a 99% hit ratio prove the cache is correct?
أظهر الإجابة
No; it can be serving stale data.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.