Galera to desenvolvendo um sistema onde vou ter de gravar um arquivo de texto inteiro em um campo BLOB, para depois retornalo na aplicação, a duvida e a seguinte os arquivos são bem grandinhos qual o contra de campos BLOB grandes no MYSQL ?
falow !!!
há outra coisa alguem conhece uma ferramenta ERD free for LINUX :roll:
Nenhum contra, mas se vc vai guardar arquivos texto, é melhor dar uma olhada em campos CLOB (Character Large Objects) ao inves de BLOBs (Binary Large Objects)…
Bom, impacto zero, e é exatamente pra isso que os BLOBs servem: pra permitir que vc guarde arquivos grandes sem se preocupar muito com performance. Num BLOB, o que fica gravado dentro da tabela é só uma referência ao arquivo, que é guardado externamente (sorry, nao me lembro o nome do diretorio onde os BLOBs ficam). O unico limite é que, se vc estiver usando plataforma x86, não dá pra gerenciar arquivos > 2gb, pelo menos por enquanto – nao sei se o MySQL tem alguma gambiarra contra isso, no entanto.
TINYTEXT
A BLOB or TEXT column with a maximum length of 255 (2^8 - 1) characters. See section 6.5.3.1 Silent Column Specification Changes. See section 6.2.3.2 The BLOB and TEXT Types.
BLOB
TEXT
A BLOB or TEXT column with a maximum length of 65535 (2^16 - 1) characters. See section 6.5.3.1 Silent Column Specification Changes. See section 6.2.3.2 The BLOB and TEXT Types.
MEDIUMBLOB
MEDIUMTEXT
A BLOB or TEXT column with a maximum length of 16777215 (2^24 - 1) characters. See section 6.5.3.1 Silent Column Specification Changes. See section 6.2.3.2 The BLOB and TEXT Types.
LONGBLOB
LONGTEXT
A BLOB or TEXT column with a maximum length of 4294967295 (2^32 - 1) characters. See section 6.5.3.1 Silent Column Specification Changes. Note that because the server/client protocol and MyISAM tables has currently a limit of 16M per communication packet / table row, you can’t yet use this the whole range of this type. See section 6.2.3.2 The BLOB and TEXT Types.