Posted: Fri Sep 15, 2006 10:10 am
So, what is an acceptable limit on entries (lenght of a Blog). from what I can tell, you have not limited the entries, so the database is going to limit it for you dependining on what column type you've declared for it. MySql text datetype is 64k, postrgre says unlimited...etc..
So, what's the longest blog post you've heard of?
FOr some reason Mr. Scott (the original guy who started the db2 patch) had declared a CLOB(32k). Now, that is an extremely interesting declaration. CLOB is a pain to work with in DB2, it's great for DB2, but bad for the SQL user. GROUP BY, ORDER BY, DISTINCT, UPPER, LOWER and many other filters all don't work on CLOB column.
THey do work on varchar columns though, of which the max length is 32k also, and everything works there.
See, Mr. Scott is probably alot smarter than me when it comes to DB2. CLOB can support up to 2 gb (or more I think on 64 bit systems). WHy he chose to limit it is interesting, and then if it's limited to 32k, why not use varchar to make life easier. Well, on non-64bit systems, you would have to declare a seperate tablespace and bufferpool to get 32k in a varchar. CLOB(32k) however, works. But so would CLOB(2gb). Declaring a tablespace and bufferpool for it is really no biggie though, lots of apps require that these days, even some other open source apps that work with DB2. Anyhow, I'm just not sure why he choose that. Seems odd.
From poking around, I kinda think 32k is not reallly enough. But, I'm not really sure. If you think 32k is enough for posts/comments and such, then life is very easy for me. Otherwise, there's alot of creativity involved. I know 99% of blog posts would not be even close to 32k, but, hey, wouldn't it be nice if s9y did support it?
So, what's the longest blog post you've heard of?
FOr some reason Mr. Scott (the original guy who started the db2 patch) had declared a CLOB(32k). Now, that is an extremely interesting declaration. CLOB is a pain to work with in DB2, it's great for DB2, but bad for the SQL user. GROUP BY, ORDER BY, DISTINCT, UPPER, LOWER and many other filters all don't work on CLOB column.
THey do work on varchar columns though, of which the max length is 32k also, and everything works there.
See, Mr. Scott is probably alot smarter than me when it comes to DB2. CLOB can support up to 2 gb (or more I think on 64 bit systems). WHy he chose to limit it is interesting, and then if it's limited to 32k, why not use varchar to make life easier. Well, on non-64bit systems, you would have to declare a seperate tablespace and bufferpool to get 32k in a varchar. CLOB(32k) however, works. But so would CLOB(2gb). Declaring a tablespace and bufferpool for it is really no biggie though, lots of apps require that these days, even some other open source apps that work with DB2. Anyhow, I'm just not sure why he choose that. Seems odd.
From poking around, I kinda think 32k is not reallly enough. But, I'm not really sure. If you think 32k is enough for posts/comments and such, then life is very easy for me. Otherwise, there's alot of creativity involved. I know 99% of blog posts would not be even close to 32k, but, hey, wouldn't it be nice if s9y did support it?