Programming Theory
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesProgramming Theory

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old February 24th, 2004, 08:26 AM
dragulceo dragulceo is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: This,Doesen't,Matter
Posts: 8 dragulceo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to dragulceo
Database storege ! Bad or good !

I'm intreseted in finding out what are the winings and the losses of using database storage!
I don't know if i should use it or i shouldn't !

Reply With Quote
  #2  
Old February 24th, 2004, 09:03 AM
System System is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Posts: 665 System User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 3
Message Moved

Thread moved from 'Database Help' to 'Programming Theory' by nawlej.

Reason: theory......

Reply With Quote
  #3  
Old February 24th, 2004, 09:04 AM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 5
RE: Database storege ! Bad or good !

Well, what do you wish to accomplish? There are pro's and cons for every application.

Reply With Quote
  #4  
Old February 24th, 2004, 01:35 PM
dragulceo dragulceo is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: This,Doesen't,Matter
Posts: 8 dragulceo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to dragulceo
Database storege ! Bad or good !

well i'm bilding a site for managing an on-line classified ads ...so there will be many pictures
every ad with his own picture ...

Reply With Quote
  #5  
Old February 24th, 2004, 02:14 PM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 5
RE: Database storege ! Bad or good !

Well, database storage would definitely be the way to go in that case....What you can do is have your database just link to the pictures you place in a different directory, but have all the ad stuff in the database itself.

Reply With Quote
  #6  
Old February 24th, 2004, 02:41 PM
dragulceo dragulceo is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: This,Doesen't,Matter
Posts: 8 dragulceo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to dragulceo
RE: Database storege ! Bad or good !

tank you !

Reply With Quote
  #7  
Old February 26th, 2004, 02:39 PM
dragulceo dragulceo is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: This,Doesen't,Matter
Posts: 8 dragulceo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to dragulceo
So the new question is

so i have one new question i hope you get this!
I have to print some thumbnails ... so you know there is a problem with making them ... i know how to make them but the question is: "i make them from the original picture every time a ad is printed or i make another table in the database where i store the tumbnails ? "... and i get them from there wenever i need them ... and so the server wouldn't have to shrink the pitures every time they are printed ...
I'm new to php and i have all sorts of problems regarding the speed and eficacy(i hope i spelled it right) .. so please help !

Reply With Quote
  #8  
Old February 26th, 2004, 03:08 PM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,331 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 26229 Folding Title: Starter FolderFolding Points: 26229 Folding Title: Starter Folder
Time spent in forums: 6 Days 15 h 33 m 41 sec
Reputation Power: 5
RE: Database storege ! Bad or good !

It will save resources on the server if you have the thumbnails as separate images. Generally thumbnail images won't take too much disk space, so it might be good to create the thumbnail files for all images instead of regenerating them on every page load.

Reply With Quote
  #9  
Old February 26th, 2004, 03:08 PM
nawlej nawlej is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Dallas, Tx. USA
Posts: 2,008 nawlej User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 7 m 51 sec
Reputation Power: 5
RE: Database storege ! Bad or good !

Well, its a trade off....Do you want more of a load on your server, or do you want to spend more time editing them and shrinking them by hand?

Reply With Quote
  #10  
Old February 26th, 2004, 04:00 PM
dragulceo dragulceo is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: This,Doesen't,Matter
Posts: 8 dragulceo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to dragulceo
RE: Database storege ! Bad or good !

So i choose makeing the thumbnails and storing them in another table ... this way we only need more space cause when i think about it i realize that the same number of querys would be answered only this time for the thumbnails ...and when requesting for the big pictures another query for another table would be done ...
Being a biginer is hard cause i freak when i see the size of the database ... witch is growing ... growing ... and realy when would de like 1.000 ads then it will have an impresioning size like
1 Gb with an average of 100k per pic ... so that is really a big figure ... i really want to know how others managed this problem ...
I'm at a university in the computer science department but my teachers aren't really very helpfull...

Reply With Quote
  #11  
Old February 26th, 2004, 07:07 PM
Andrew's Avatar
Andrew Andrew is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: United Kingdom
Posts: 1,947 Andrew User rank is Private First Class (20 - 50 Reputation Level)Andrew User rank is Private First Class (20 - 50 Reputation Level)  Folding Points: 2429 Folding Title: Novice Folder
Time spent in forums: 4 Days 6 h 10 m 55 sec
Reputation Power: 4
RE: Database storege ! Bad or good !

Or if you really wanted too you could store the actual image in the database using BLOB type.

Reply With Quote
  #12  
Old February 26th, 2004, 07:10 PM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,331 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 26229 Folding Title: Starter FolderFolding Points: 26229 Folding Title: Starter Folder
Time spent in forums: 6 Days 15 h 33 m 41 sec
Reputation Power: 5
RE: RE: Database storege ! Bad or good !


Quote:
Do you want more of a load on your server, or do you want to spend more time editing them and shrinking them by hand?


But you can always make a PHP script that shrinks the images and saves them to another file. No need for doing it by hand, computers are invented

Reply With Quote
  #13  
Old February 26th, 2004, 09:21 PM
dragulceo dragulceo is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: This,Doesen't,Matter
Posts: 8 dragulceo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to dragulceo
RE: Database storege ! Bad or good !

i heva a mysql database in witch i use the blob field and i save the pictures ... but i ask you what could be betted .. to save a thumbnail in another table or to create the thumbnail with mogrify (ImageMagick) every time a picture is needed ...but meanwhile i decided that i save the thumbnails in another table
10x !
The question is what is better ... ?

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesProgramming Theory > Database storege ! Bad or good !


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek