D
D
Dmitry Ivanov2018-03-12 20:57:04
Django
Dmitry Ivanov, 2018-03-12 20:57:04

Is there a plus of taking out the picture in a separate model?

There is an article with a preview of the picture, does it make sense to put it in a separate model with reference to the article. Or select a field for files in the model.
Interested in pros and cons.
And does it greatly affect performance?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Kitaev, 2018-03-12
@deliro

If there is only one picture, store it in the article model. If there are many of them - in a separate one.
Make a bench.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question