db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Db-derby Wiki] Update of "BuiltInLanguageBasedOrderingDERBY-1478" by MamtaSatoor
Date Sun, 25 Mar 2007 20:45:03 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Db-derby Wiki" for change notification.

The following page has been changed by MamtaSatoor:
http://wiki.apache.org/db-derby/BuiltInLanguageBasedOrderingDERBY-1478

------------------------------------------------------------------------------
  
  14)CollatorSQLChar has a method called getCollationElementsForString which currently gets
called by like method. getCollationElementsForString gets the collation elements for the value
of CollatorSQLChar class. But say like method is looking for pattern 'A%' and the value of
CollatorSQLChar is 'BXXXXXXXXXXXXXXXXXXXXXXX'. This is eg of one case where it would have
been better to get collation element one character of CollatorSQLChar value at a time so we
don't go through the process of getting collation elements for the entire string when we don't
really need. This is a performance issue and could be taken up at the end of the implementation.
Comments on this from Dan and Dag can be found in DERBY-2416. 
  
- 15)Add tests for this feature. This a broad umbrella task but I do want to mention 2 specific
tests that we should be testing
+ 15)Add tests for this feature. This a broad umbrella task but I do want to mention 3 specific
tests that we should be testing
  a)Make sure the scale of the character datatypes is always 0 and it didn't get impacted
negatively by the overloading of scale field as collation type in TypeDescriptor.
  b)Test case for recovery - have an outstanding transaction with insert/delete/updates that
affect one or more character indexes (all with a collation setting that is different from
default collation). Make sure those log records get to the log and then crash the server.
Restarting the server will then run through the recovery code and will ensure that we test
for correct collation usage at recovery time. Mike has put more info about this in DERBY-2336.
+ c)CREATE VIEW should have collation type UCS_BASIC/TERRIOTRY_BASED assocatied with it's
character columns. The exact collation will be determined by what is the value of the COLLATION
attribute. This is same as what would happen for CREATE TABLE. Have a test for global temporary
tables with character colums too.
  
  16)Make sure the space padding at the end of various character datatypes is implemented
commented correctly in javadocs. This padding is used in collation related methods. For eg
check SQLChar.stringCompare method.
  

Mime
View raw message