DEV Community

Discussion on: Why ForeignKey reference in Django model's __str__ method is a bad idea

Collapse
 
vergeev profile image
Pavel Vergeev

You can denormalize the tables, duplicating author name on the Book instances. But only in case you actually need the data and cannot afford the overhead, of course.

Collapse
 
c_v_ya profile image
Constantine

Fair point. For some reason I started to come across on a lot of DB denormalization advises quite often lately. And wondering if that's a trend now?