1.0

Table Of Contents
secondary buckets of a partitioned table if the table was created with REDUNDANCY Clause. To include the
redundant buckets, specify the query hint --sqlfire-properties withSecondaries = true as
shown in the example.
Example
-- find out current process distributed member id
VALUES dsid()
-- get members where a partitioned table is defined.
SELECT DISTICT dsid() FROM emp.employee
-- number of rows present on each member of a partitioned
table.
SELECT count(emp_id), dsid() FROM course, sys.members GROUP
BY dsid()
-- number of rows including secondary copies present on each
member of a
-- partitioned table.
SELECT count(emp_id), dsid() FROM course, sys.members m
--sqlfire-properties withSecondaries = true \n GROUP BY dsid()
GROUPS Function
Returns the current distributed member's server groups as a comma-separated list in the sorted order.
GROUPSINTERSECT Function
Return a boolean result. This function is a variant of the GROUPSINTERSECTION function.
See GROUPSINTERSECTION Function for more information. You can use GROUPSINTERSECT as part of
a SelectExpression
GROUPSINTERSECTION Function
Get the intersection of two comma-separated, sorted server groups lists. The function returns an empty string if
there is no intersection. If one of the parameters is empty, then all server groups are returned in the result.
GROUPSUNION Function
Return the union of two comma-separated, sorted lists of server groups. If one of the parameters is empty, then
all groups are considered and returned as a result (in effect, an empty string).
Built-in System Procedures
Certain SQLFire built-in system procedures manage features of the distributed system, such as database caching.
These built-in system procedures are not compatible with other relational databases. SQLFire also includes many
standard built-in procedures that are provided with Apache Derby.
Standard Built-in Procedures
SQLFire includes many data and query management procedures from Apache Derby.
SYSCS_UTIL.EMPTY_STATEMENT_CACHE
Remove as many compiled statements (plans) as possible from the database-wide statement cache.
The SYSCS_UTIL.EMPTY_STATEMENT_CACHE stored procedure removes as many compiled statements
(plans) as possible from the database-wide statement cache. The procedure does not remove statements related
to currently executing queries or to activations that are about to be garbage collected, so the cache is not guaranteed
to be completely empty after a call to this procedure.
Syntax
SYSCS_UTIL.EMPTY_STATEMENT_CACHE()
vFabric SQLFire User's Guide550
vFabric SQLFire Reference