Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Mass Data on db

Mass Data on db

Scheduled Pinned Locked Moved Database
htmldatabasequestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alireza Loghmani
    wrote on last edited by
    #1

    Hi I'll develop a website that people will post something formatted with HTML with some pictures. Which way is better to save these content (long HTML with several pictures)? Save them in db or save them on disk? Why? Thanks a lot.

    L P 2 Replies Last reply
    0
    • A Alireza Loghmani

      Hi I'll develop a website that people will post something formatted with HTML with some pictures. Which way is better to save these content (long HTML with several pictures)? Save them in db or save them on disk? Why? Thanks a lot.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Alireza Loghmani wrote:

      Which way is better to save these content (long HTML with several pictures)?

      That depends on your needs, both have advantages and disadvantages. I listed some in the answer over here[^]. A website; how many space do you have on your ftp-account, and how many space is available in your database? If it's a very busy database-server (lots o' queries, lots o' records), I'd opt to save the files in the directory-structure. Otherwise, they'd go into the database. Especially with an online-host, where they might have separate backupplans for databases and normal files. There's an extra advantage to having them saved as files on the system; if the directory is accessibly from IIS, you could hotlink to that file from outside your server - without the need of adding any load to your databaseserver at all :)

      I are Troll :suss:

      A 1 Reply Last reply
      0
      • L Lost User

        Alireza Loghmani wrote:

        Which way is better to save these content (long HTML with several pictures)?

        That depends on your needs, both have advantages and disadvantages. I listed some in the answer over here[^]. A website; how many space do you have on your ftp-account, and how many space is available in your database? If it's a very busy database-server (lots o' queries, lots o' records), I'd opt to save the files in the directory-structure. Otherwise, they'd go into the database. Especially with an online-host, where they might have separate backupplans for databases and normal files. There's an extra advantage to having them saved as files on the system; if the directory is accessibly from IIS, you could hotlink to that file from outside your server - without the need of adding any load to your databaseserver at all :)

        I are Troll :suss:

        A Offline
        A Offline
        Alireza Loghmani
        wrote on last edited by
        #3

        OK man, thanx. that's my answer.

        L 1 Reply Last reply
        0
        • A Alireza Loghmani

          OK man, thanx. that's my answer.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          My pleasure :)

          1 Reply Last reply
          0
          • A Alireza Loghmani

            Hi I'll develop a website that people will post something formatted with HTML with some pictures. Which way is better to save these content (long HTML with several pictures)? Save them in db or save them on disk? Why? Thanks a lot.

            P Online
            P Online
            PIEBALDconsult
            wrote on last edited by
            #5

            Alireza Loghmani wrote:

            Save them in db or save them on disk?

            Isn't the DB on disk? :confused: I'd just stick it in the database; easier to backup, copy, etc. Plus, I'd live in fear of someone deleting or modifying the files.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups