No no need.
one.
The database will grow over time, and it will no longer be possible to transfer it to the client, not only in a reasonable time, and it may not work at all.
2
You did not specify what is your database. If MongoDB, then there itself built data structure already solved your question. If any SQL, see clause 3.
3
If the connection is один-к-одному
, then it is enough to replace it with the object's attachment: Customer
to attach Photo
, or vice versa - it depends on what data the request is executed from ( need to specify the question ).
four.
Surely you need to pull data either by Customer
or Photo
. If you are building a pivot table, see clause 3. If you have a form with fields dependent on one another, then these are several requests to the server behind a chain of field dependencies (for example, if you chose a specific Customer
, you only got Photo
, and what else is needed for other fields dependent on it).
Shl
The answer is vague of course, but the question you have is the same is not specific ...