For the following operations that you perform on a table,
Derby automatically
creates statistics. Those operations are:
- (new index only) When you create a new index on an existing non-empty
table.
- (new backing indexes only) When you add a primary key, unique, or foreign
key constraint to an existing non-empty table.