Chickenz Posted April 3, 2004 Report Share Posted April 3, 2004 Es te lasu to php.lv un lēnām sāk likties, ka liela daļa pašus failus glabā iekš db?!?! Vai tad tā var un ja var tad kĀ??? Link to comment Share on other sites More sharing options...
Roze Posted April 3, 2004 Report Share Posted April 3, 2004 Njemam un lasam How to Store Images Directly in the Sql Database http://www.phpbuilder.com/columns/florian19991014.php3 Link to comment Share on other sites More sharing options...
Gacha Posted April 3, 2004 Report Share Posted April 3, 2004 Cik esmu dzirdejis - šis nav labs veids, ka bildes stum DB, jo tas to noslogo <_< Link to comment Share on other sites More sharing options...
Aleksejs Posted April 3, 2004 Report Share Posted April 3, 2004 Domāju, ka tomēr lielākā daļa iekš DB glabā tikai ceļu uz bildi, nevis pašu bildi. Link to comment Share on other sites More sharing options...
Roze Posted April 3, 2004 Report Share Posted April 3, 2004 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 More sharing options...
Recommended Posts