Hey Antonie,
Personally I’m quite against changing that warning. I have only ever seen one application where the use of an in-database file is appropriate and they where using the FILESTREAM
type in SQL Server which offers some pretty advanced semantics compared to other databases (more akin to Django’s file storage than a BLOB column).
I’ve seen a lot of beginners use BLOB/byte fields where it’s really not needed and struggle with some insane performance issues due to it - especially with Django fetching all columns in a model by default. Also the link you gave (and thanks for linking, it’s an interesting read) is obviously Postgres specific, the issues you might face doing this are very vendor specific and non-portable - sqlite recommends against storing anything larger than 100kb in a row for example.
I feel like the warning should implicitly say “do not do this, really don’t, but if you’re super super super sure you 100% need to then you’re going to disregard this warning anyway”, which the current one does quite well. To put it another way, if you’re at the point where you need to do this you’re way past reading the warning in the Django docs, and we should deter people who might make the wrong choice at the start.
Tom
--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To post to this group, send email to django-d...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/28cec919-ae57-4eed-960b-d598a01c2711%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscribe@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/28cec919-ae57-4eed-960b-d598a01c2711%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscribe@googlegroups.com.
To post to this group, send email to django-developers@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAFNZOJP967XiTqQBURfPN6W3KCOBpgiMEyCXw7aXbCSgWbNuhg%40mail.gmail.com.