"การ merge pull request นี้อาจทำให้ production เสื่อมประสิทธิภาพ" Polylane รีวิวทุก pull request เทียบกับ production จริง
ลงชื่อเข้า waitlistAdd trigram index for order search #482
main from order-search-trgm Merging this pull request may degrade production (high impact).
Merging this blocks every write to orders while the index builds. migrations/0114_order_search_trgm.sql:3 adds CREATE INDEX … USING gin (search_text gin_trgm_ops) without CONCURRENTLY, and a plain CREATE INDEX takes a full write lock on orders for the whole build. Checkout sustains ~38 writes/s on that table; each one queues behind the lock until the build finishes.
To make this safe: build the index with CREATE INDEX CONCURRENTLY outside the transactional migration.
Polylane analysed de91b47 for production impact.
linter ของคุณมองไม่เห็น production ผู้รีวิวคนนี้เห็น
-
รีวิวเทียบกับสิ่งที่รันอยู่จริง
diff ถูกตรวจเทียบกับ service ที่มันจะ deploy ไป: การตั้งค่า ทราฟฟิก และ incident ล่าสุดของ service เหล่านั้น
-
ผ่านโดยค่าเริ่มต้น
การไม่ผ่านต้องพิสูจน์ให้ชัดว่าบรรทัดใดใน diff ทำให้ production พังอย่างไร "อาจจะ" ไม่นับ
-
คอมเมนต์เดียว
อัปเดตในที่เดิมทุกครั้งที่ push ไม่มีการถมทับ การเปลี่ยนเอกสารและเทสต์ผ่านไปตรง ๆ
-
มีเขี้ยว ถ้าคุณต้องการ
เปิด check แบบบล็อก แล้วการไม่ผ่านจะกั้น merge ไว้จนกว่า push ครั้งถัดไปจะแก้มันได้