Jump to content
php.lv forumi

Bildes un faili viss iekš DB!!!


Chickenz

Recommended Posts

Cik esmu dzirdejis - šis nav labs veids, ka bildes stum DB, jo tas to noslogo  <_<

Nu ja izsaka kaut kaadus pienjeemumus vajag tam arii pamatojumu nevis "viena tante teica"..

 

Kaa piemeeru var paskatiities:

http://www.zend.com/zend/trick/tricks-sept-2001.php

 

Based on the test results, it seems that keeping files in a database cuts performance by approximately a third. It's hard to accept this penalty in light of any meager advantages offered by keeping the files in the databases instead of in a directory.
2000 rows in a table is an easy problem for a database, but 2000 files in directory can be very slow

 

(pie kam shis ir 2001 gada materiaals pa to laiku ir diezgan daudz kas mainiijies tajaa pashaa mysql serverii taapeec iespeejams aatrdarbiibas miinusi vareetu buut veel mazaaki - saglabaajot ieprieksheejaas priekshrociibas)

 

Proti es negribu apgalvot ka viens vai otrs variants ir labs vai slikts jo gan vienam gan otram (t.i. failu glabaashanai uz failsisteemas vai db) ir savas priekshrociibas un miinusi (kaa piemeeru ne failsisteemai vareetu mineet aplikacijas izstraadi (ne php) kurai klienta pusee jaadarbojas ar failiem - tad viens no veidiem kaa pastarpinaati neizmantot http/ftp/nfs vai kaadu citu failu paarsutiishanas veidu ir glabaat tos datubaazee pie kaa attieciigaa programma sleedzas).

 

Bet sheit jautaajums bija par iespeeju kaa taadu ne saliidzinaajumu..

Link to comment
Share on other sites

×
×
  • Create New...