Re: File upload to database ?
This WebDNA talk-list message is from 2001
It keeps the original formatting.
numero = 39138
interpreted = N
texte = Alain Russell wrote:> > Can a file be written to a database when being uploaded ??> > Ie. Instead of using [writefile ....] on the page being posted to can the> file data be written to a database and then re-written at a later date as> needed, or will WebCat do strange things to it .. ?> Is the file text only? If the answer is no, then you cannot store thedata in a database. Actually you could, but you would have to encodeas text (like in Base64 or something like tar). But this is really besides the point.It is also an incredibly dumb idea (no offense intended). The only reason to have any data in a table is because you intend to search it. This goes for WebCat as well as any other database. If you neverintend to search the contents of a field, it does not belong in a table (except if it is closely related to a search field and is small).Now, I am sure that there are plenty of people who will say, RAM is cheap and that is how I have always done it to which I have to saythat this is a general rule of thumb. If you only embed a chunk oftext in a page in response to a specific query, and never query thattext directly, it is better stored in the file system than in RAM.RAM may be cheap, but storage is cheaper by a factor of 60 or more(1GB RAM = $200, 30 GB HD = $99).I just got through working with our site developers to move the sample chapters off of our main web server, because they really don't belong there either. There is now a frame page located on the primary server that embeds the large text files from another server.This all goes to the idea of online, nearline, and offline. I storeas little text in databases as possible (basically only fields thatare searchable and small, tightly related fields). Large text filesand graphics files are stored on a second server that doesn't havemuch to do (i.e. it does not have WebCat loaded at all and does noCGI pages at all).John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 301-429-5747-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Alain Russell wrote:> > Can a file be written to a database when being uploaded ??> > Ie. Instead of using [writefile ....] on the page being posted to can the> file data be written to a database and then re-written at a later date as> needed, or will WebCat do strange things to it .. ?> Is the file text only? If the answer is no, then you cannot store thedata in a database. Actually you could, but you would have to encodeas text (like in Base64 or something like tar). But this is really besides the point.It is also an incredibly dumb idea (no offense intended). The only reason to have any data in a table is because you intend to search it. This goes for WebCat as well as any other database. If you neverintend to search the contents of a field, it does not belong in a table (except if it is closely related to a search field and is small).Now, I am sure that there are plenty of people who will say, RAM is cheap and that is how I have always done it to which I have to saythat this is a general rule of thumb. If you only embed a chunk oftext in a page in response to a specific query, and never query thattext directly, it is better stored in the file system than in RAM.RAM may be cheap, but storage is cheaper by a factor of 60 or more(1GB RAM = $200, 30 GB HD = $99).I just got through working with our site developers to move the sample chapters off of our main web server, because they really don't belong there either. There is now a frame page located on the primary server that embeds the large text files from another server.This all goes to the idea of online, nearline, and offline. I storeas little text in databases as possible (basically only fields thatare searchable and small, tightly related fields). Large text filesand graphics files are stored on a second server that doesn't havemuch to do (i.e. it does not have WebCat loaded at all and does noCGI pages at all).John-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4720 Boston WayLanham, MD 20706301-459-3366 x.5010fax 301-429-5747-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
John Peacock
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
No. of items in shopping cart (2000)
Trouble with formula.db + more explanation (1997)
Re:2nd WebCatalog2 Feature Request (1996)
Browser Info.txt (1997)
error: Too many nested [xxx] contexts (1997)
[WebDNA] shopping sites and the "old commerce tags" (2012)
Bad cookie (1998)
Max Record length restated as maybe bug (1997)
Problems appending to database (1997)
Merging databases (1997)
Multiple security dbs (1997)
Forms Search Questions (1997)
All choices on IE different than Netscape (1997)
WebCatalog can't find database (1997)
Text limits in NT version? (1997)
[WebDNA] Conversion of 500.000 records; advise needed (2008)
RE: Start an application on NT? (1999)
Frames and WebCat (1997)
[WebDNA] How much does it cost now? (2008)
Buying sans cart (1997)