У нас вы можете посмотреть бесплатно Laravel: BelongsTo vs Polymorphic? Let's Test! или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
I get a lot of questions about database structure, and in this video I will practically test two different DB structures and we will try to see which is better: belongsTo with three columns, or polymorphic relations? [00:50] Which DB structure to choose? [02:51] Which DB table is bigger in size? [03:44] List of entries: which is faster? [05:45] Querying by ID: which is faster or more convenient? [08:00] Querying by name of the relationship [10:24] Adding another field: where Polymorphic "shines" [12:06] Polymorphic is not actually a relationship - - - - Try our Laravel QuickAdminPanel: https://bit.ly/quickadminpanel Enroll in my Laravel courses: https://laraveldaily.teachable.com