My FeedDiscussionsHashnode Enterprise
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more
Jurrian Tromp

1 like

·

1.4K reads

2 comments

Ander
Ander
Aug 4, 2023

I am having performance issues because of the inlines, I am really curious about your solution, but is it just for Django v4? that way of defining inlines = ["some-inline"] as strings doesn't look familiar, shouldn't that be classes instead?

·
·1 reply
Jurrian Tromp
Jurrian Tromp
Author
·Aug 19, 2023

AFAIK this is applies to all Django versions. You are right that they should be classes instead. It might be that as a string it still works as lazy loading, so probably both work. The key of the problem is how the Django internals work in such a way that it creates a lot of extra queries.

·