ENع
الدرس 13 · Inside a database

B-trees

لم يُترجم بعد؛ يُعرض باللغة الإنجليزية

Without an index, finding one row means reading every page of the table. A B-tree index keeps the keys sorted in a tree of pages, so the database reads one page per level instead. Follow CREATE INDEX on a small books table, a search for id 28, a range scan along the linked leaves, and an insert that fills a page, splits it and copies a separator key up to the root.

14 دقيقة11 خطوات5 أسئلةAdvanced
شكل 13 · تفاعلي
جارٍ تحميل الرسم…
أو ← →

اختبار يتاح بعد الخطوة الأخيرة.