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

عرض عملي: إعادة تسمية عمود أثناء حركة مرور حية

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

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

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

في هذا الدرس

rename customer.name to full_name with zero failed requests.

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

خطوة بخطوة

  1. Start a load test hitting customer endpoints; baseline error count is zero.
  2. Release 1: Flyway adds full_name (nullable); app writes both columns, reads name.
  3. Run the batched backfill; verify with a count of rows where the columns differ.
  4. Release 2: app reads full_name and still writes both.
  5. Planned mistake: run ALTER TABLE ... RENAME COLUMN directly; the load test shows errors from old instances. Show it, restore, and continue with the safe path.
  6. Release 3: stop writing name; later Release 4 drops it. The load test reports zero failures.

Prepares MID-020-LAB1.

اختبر فهمك

At which release can the old column finally be dropped?

أظهر الإجابة

After no running version reads or writes it.

التطبيق

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

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

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

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