7 Comments
⭠ Return to thread

Great article :)

I just had one question:

This system doesn't seem to handle removal of images. If it were to do that, how would that work with the image de-duplication that's in place?

For example:

Two users upload the same image

One of the users then deletes theirs

What would happen to the second user's image? In this case we would need to have the image duplicated right?

Expand full comment

In a scenario where a restaurant decides to remove a certain dish and the associated images, we would just remove the dish data from the database with respect to that restaurant without removing the images. The images would still reference to other restaurant's dish data. We could also delete the images if the images do not reference other restaurant's dishes.

Expand full comment