Jump to content

What's a faster database schema for photo keywords?


katlis

Recommended Posts

If you had a photo gallery, for example, and needed a way to search for photos via keywords, would it be faster to search a table with a csv structure like this?

   

imgID1 | keyword1,keyword2,keyword3

imgID2 | keyword3,keyword4,keyword5

   

or a keyword table like this?

   

keyword1 | imgID1

keyword1 | imgID2

keyword2 | imgID1

 

Any other ideas or input is greatly appreciated.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.