Search code examples
.netdatabasedatabase-designumbraco

Best way to make milliondollarhomepage dynamic image grid?


I've been thinking about setting up a image grid similar to milliondollarhomepage for a small domestic hobby idea , it would be dynamic. The grid would be around 500x500, I am wondering the best way to code this up, It can't be slow.

I am thinking it will work like this:

  1. Users choose their place on the grid and upload their image.
  2. The image is stored in the DB in a image type column
  3. On rendering the page to the public, .NET cycles through all the uploaded images from the DB and dynamically creates the image based on each DB rows data & stored place in the square

The thing is I am not sure if this is a silly way to do it?

What do you guys think?

Thanks!


Solution

  • You're better off just recreating the image whenever somebody uploads a change. Assuming there will be far more visitors than contributors it would be wasteful to recreate the image for every request.