انتقل إلى المحتوى
أمين أبوزيد
درس مخطط لهMID-041-L06

عرض عملي: البيانات نفسها في أربعة نماذج

  • الدرس 6 من 6
  • Mid-level
في هذا الدرس 3 موضوعات

هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.

نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.

في هذا الدرس

model Shop reviews four ways and compare the queries each supports. Prepares MID-041-LAB1.

تفاصيل المخطط المبدئي

خطوة بخطوة

  1. Relational: tables review, product, customer; show the join for "latest 20 with customer name".
  2. Document: one review per document, with the customer name copied in; show a find by productId sorted by date.
  3. Wide-column: reviews_by_product and reviews_by_customer tables; show the duplicated writes.
  4. Graph: (Customer)-[:WROTE]->(Review)-[:ABOUT]->(Product); show a "similar reviewers" traversal.
  5. Planned mistake: copy the relational schema into the document store with references everywhere; every read needs several lookups. Fix: embed what is read together (customer display name, rating).
  6. Fill the comparison table of queries each model supports well.

اختبر فهمك

Which model best answers "latest reviews of a product" at huge write volume?

أظهر الإجابة

Wide-column, partitioned by product.

التطبيق

طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.

المختبر والتمارين الاختبار

تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.

اكتب للبحث في المستويات والمراحل والوحدات والدروس.