How to design and optimize a database for a site to have multiple images feaure for each link

1453939

I'm working on a database for a website with around 500,000 links. We need to add a photo feature to the site. We can have two tables such as table_links (for each link content, text, keywords, etc) and table_images (for image title, image URL, thumbnail, etc). In www.domain.com, there are link summaries required to have one image thumbnail for the links. Inside each link, we should have 0-25 photos plus their thumbnails, plus text content. My question is about those thumbnails (one for each link) in www.domain.com. Do you think we should save that one image (URL, title) in a column inside table_links for simplicity and a better response time or any other reason I cant think of, or shall we keep all images in the table_images. Or do you have any better suggestion about what would be a better way to add this photo feature. It is noteworthy to remind that, not all of the links are going to have images.

Thanks in advance,

Bee157

Since not all The links will have a thumbnail, i'd personally prefer seperate tables. Another reason is that thumbnails could simply be reused by different links. Or in future versions you could even add multiple thumbnails per link. All this without affecting The structure of the db.

Performance wise seperate tables could BE usefull as Well. Suppose you want The thumbnails to BE shown On hover: On page load, you can load all The links, and afterwards (eg with Ajax) you can start loading the images (bulk load or On demand, 1 by 1). This reduces page-load time significantly.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to have multiple link hover colors, different each rollover?

From Dev

How to Optimize images after uploading all images to Wordpress Site?

From Dev

Optimize Wordpress Database Design

From Dev

How to add multiple images in rails site

From Dev

Database design: How to query multiple to multiple table

From Dev

database design primary key of multiple tables link to one table

From Dev

How to Further Optimize WP Site

From Dev

How to have each turtle share the same links as their link-neighbors

From Dev

How to have each turtle share the same links as their link-neighbors

From Dev

Database Design for multiple tables

From Dev

Database Design for multiple tables

From Dev

How to create multiple language site when load data from database?

From Dev

How to design a row of images?

From Dev

how to optimize by grouping multiple web service calls into one. design pattern c#

From Dev

How to stack multiple images on top of each other using python or matlab?

From Dev

How to stack multiple images on top of each other using python or matlab?

From Dev

How to design/configure a database to support multiple character sets?

From Dev

how will i create multiple type id in one column database design

From Dev

How do I insert multiple images in rows from mysql database?

From Dev

How to have multiple TextView and EditText in one row each

From Dev

how to sort a set when elements have multiple relationships with each other

From Dev

How to have multiple TextView and EditText in one row each

From Dev

How to have multiple "For/Each" Loops Running In Excel VBA

From Dev

How to optimize/design WCF for hundreds of concurrent connections?

From Dev

Can't have multiple auth tables in Laravel, I want to use a link table in the database, need advice on creating link table

From Dev

Rails Database design and multiple subdomain

From Dev

Database design for products with multiple prices

From Dev

Database design for products with multiple prices

From Dev

Database design for users with multiple balances

Related Related

  1. 1

    How to have multiple link hover colors, different each rollover?

  2. 2

    How to Optimize images after uploading all images to Wordpress Site?

  3. 3

    Optimize Wordpress Database Design

  4. 4

    How to add multiple images in rails site

  5. 5

    Database design: How to query multiple to multiple table

  6. 6

    database design primary key of multiple tables link to one table

  7. 7

    How to Further Optimize WP Site

  8. 8

    How to have each turtle share the same links as their link-neighbors

  9. 9

    How to have each turtle share the same links as their link-neighbors

  10. 10

    Database Design for multiple tables

  11. 11

    Database Design for multiple tables

  12. 12

    How to create multiple language site when load data from database?

  13. 13

    How to design a row of images?

  14. 14

    how to optimize by grouping multiple web service calls into one. design pattern c#

  15. 15

    How to stack multiple images on top of each other using python or matlab?

  16. 16

    How to stack multiple images on top of each other using python or matlab?

  17. 17

    How to design/configure a database to support multiple character sets?

  18. 18

    how will i create multiple type id in one column database design

  19. 19

    How do I insert multiple images in rows from mysql database?

  20. 20

    How to have multiple TextView and EditText in one row each

  21. 21

    how to sort a set when elements have multiple relationships with each other

  22. 22

    How to have multiple TextView and EditText in one row each

  23. 23

    How to have multiple "For/Each" Loops Running In Excel VBA

  24. 24

    How to optimize/design WCF for hundreds of concurrent connections?

  25. 25

    Can't have multiple auth tables in Laravel, I want to use a link table in the database, need advice on creating link table

  26. 26

    Rails Database design and multiple subdomain

  27. 27

    Database design for products with multiple prices

  28. 28

    Database design for products with multiple prices

  29. 29

    Database design for users with multiple balances

HotTag

Archive