Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-18-2005, 04:43 PM   #1
qw12er
Confirmed User
 
Join Date: Apr 2004
Location: Montreal
Posts: 799
Pictures in MySQL database ?

I heard it wasn't really reliable ?

What are your thoughts on the subject ?
__________________
I have nothing to advertise ... yet.
qw12er is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-18-2005, 04:48 PM   #2
calmlikeabomb
Confirmed User
 
calmlikeabomb's Avatar
 
Join Date: May 2004
Location: SW Palm Bay, Florida
Posts: 1,323
Just store the location of the image in your db.
__________________
subarus.
calmlikeabomb is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-18-2005, 04:56 PM   #3
qw12er
Confirmed User
 
Join Date: Apr 2004
Location: Montreal
Posts: 799
Nah I need to have quick access to the files since I'll have to process thousand of them.
__________________
I have nothing to advertise ... yet.
qw12er is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-18-2005, 05:00 PM   #4
blazin
Confirmed User
 
Join Date: Aug 2002
Posts: 2,781
Sounds like you've already made up your mind... but if your gonna do it then store them in a seperate table on their own.
__________________
I don't endorse a god damn thing......
blazin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-18-2005, 05:03 PM   #5
qw12er
Confirmed User
 
Join Date: Apr 2004
Location: Montreal
Posts: 799
I'm considering storing them on a FTP too. Whould be cleaner in DB...

Why should I store them in a separate table ? (sounds like a good idea though)
__________________
I have nothing to advertise ... yet.
qw12er is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-18-2005, 05:08 PM   #6
pythonx
Confirmed User
 
Join Date: Aug 2004
Posts: 430
Quote:
Originally Posted by qw12er
Nah I need to have quick access to the files since I'll have to process thousand of them.
Your database will grow very quickly, but its very reliable if you store them correctly as a BLOB. I tested speed on requesting images in a mysql db vs images stored on server and there was not much difference in speed.
pythonx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-18-2005, 05:10 PM   #7
TMM_John
Confirmed User
 
TMM_John's Avatar
 
Industry Role:
Join Date: May 2004
Posts: 6,660
You want to store the DATA of an image in a MySQL database?

Why?!

Store it on disk and store the location of it in a table.
TMM_John is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-18-2005, 05:20 PM   #8
qw12er
Confirmed User
 
Join Date: Apr 2004
Location: Montreal
Posts: 799
Quote:
Originally Posted by PBucksJohn
You want to store the DATA of an image in a MySQL database?

Why?!

Store it on disk and store the location of it in a table.
Efficiency. I will have to process 100'000's of picture every day.
__________________
I have nothing to advertise ... yet.
qw12er is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-18-2005, 05:24 PM   #9
TMM_John
Confirmed User
 
TMM_John's Avatar
 
Industry Role:
Join Date: May 2004
Posts: 6,660
Quote:
Originally Posted by qw12er
Efficiency. I will have to process 100'000's of picture every day.
I'm just wondering how storing it in a DB rather than a reference to it in a DB makes it easier for you? (not trying to be sarcastic, I'm geniunely curious)
TMM_John is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-18-2005, 06:28 PM   #10
AmigoPorn
Too lazy to set a custom title
 
AmigoPorn's Avatar
 
Join Date: Jul 2003
Location: Mexico - So far away from god, so close to the United States
Posts: 21,583
Quote:
Originally Posted by PBucksJohn
You want to store the DATA of an image in a MySQL database?

Why?!
There are benefits in doing that. Especially if you need a true DDB.
__________________
ICQ: 267899523


AmigoPorn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-18-2005, 06:34 PM   #11
quantum-x
Confirmed User
 
quantum-x's Avatar
 
Join Date: Feb 2002
Location: ICQ: 251425 Fr/Au/Ca
Posts: 6,863
it's very possible, I've done it on a few of my sites.
Just stick it in the blob structure, and use php's great tmp_file procedure!
quantum-x is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-18-2005, 07:45 PM   #12
_Lush_
Confirmed User
 
_Lush_'s Avatar
 
Industry Role:
Join Date: Jul 2005
Location: GDL Jal.
Posts: 536
Never ever use MySQL for storing pics any database expert will tell you this
it affects performance greatly especially if you need mysql for other things besides a pic server
_Lush_ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-18-2005, 07:51 PM   #13
directfiesta
Too lazy to set a custom title
 
directfiesta's Avatar
 
Industry Role:
Join Date: Oct 2002
Location: Montreal, Quebec
Posts: 29,677
On one site, I use X-cart as a shopping cart ( about 300 products ). The default option is to store the images in the DB...
Tried both and it was more reliable and a tandy faster with images in DB.
__________________
I know that Asspimple is stoopid ... As he says, it is a FACT !

But I can't figure out how he can breathe or type , at the same time ....
directfiesta is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.