Filters a database's relations, keeping only the main relations, and those considered ancestors via foreign key references. Foreign key references involving removed relations are also removed.
Usage
# S3 method for class 'database'
reduce(x, ...)
Details
The main relations are considered to be the relations with the largest number of records.
Using rejoin
on the database resulting from reduce
is
likely to fail or return incomplete results.