Storage of a large number of image databases or file system

I am working on a project where we need to store a large number of images, say, about 10 million, so this is the best way to save images. The best way in terms of speed and efficiency. This is a web project, so image search should be quick.

  • Database

    Saving images as base64 in the database.
      we are working on a nosql database.

  • File system

    Make a unique identifier and save it in a folder.

+5
source share
2 answers

1) Database

  • it will take a lot of code to process images using streams
  • Heavier load on the database server Database storage
  • , .
  • , .
  • db .
  • ( -) , .

2)

  • .
  • , - .., .

http://perspectives.mvdirona.com/2008/06/30/FacebookNeedleInAHaystackEfficientStorageOfBillionsOfPhotos.aspx

. - ?

+3

- .

  • , -

  • .

:

  • , .
  • -
    • , - sendfile() . , , .
  • , - .., .
  • , .
    • db .
    • ( -) , .

  • -
  • ( , ..)

SQL 2008, FileStream SO - .

- ?

Edit

Nosql:

+1

All Articles