db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rick Hillegas <rick.hille...@oracle.com>
Subject puzzling command options for SYSCS_UTIL.SYSCS_INPLACE_COMPRESS_TABLE()
Date Tue, 01 May 2012 14:22:25 GMT
According to the Derby Reference Guide, 
SYSCS_UTIL.SYSCS_INPLACE_COMPRESS_TABLE() is supposed to return file 
space to the operating system if you invoke it with the trailing 
TRUNCATE_END argument set to 1. I am puzzled by the behavior I am seeing.

I am looking at the repro for DERBY-5234. The heap conglomerate of a 
(soon to be) large table starts out as 8192 bytes long. Over time, the 
heap conglomerate grows to be 42672128 bytes long. Then all of the rows 
are deleted from the table and it is compressed with the following call:

0, 1 )

The heap conglomerate shrinks a little, down to 41857024. The Reference 
Guide suggests that this way of invoking SYSCS_INPLACE_COMPRESS_TABLE() 
might not actually do much. Here's what the Reference Guide says: "To 
return the empty free space at the end of the same table, the following 
call will run much quicker than running all options but will likely 
return much less space." In this situation, that's an understatement. In 
this situation, the meaning of the call seems to be "Run fast but don't 
do what I want."

How is the user supposed to figure out which compression options should 
be turned on? Should we recommend that all options should always be 
turned on? Why would anyone want to run fast but not achieve much?


View raw message