A method of processing a database service query that results in improved
service query performance is provided. In one embodiment, the method
includes receiving a service query that includes a filter having one or
more filter items, expanding the filter, and applying at least one
condition test to each filter item. An example of a test condition
includes determining if each filter item includes a NOT connective and is
either of first form or a second form of filter item. The first form may
be a type only filter item and the second form may be a type and value
filter item.