mini\Table\Wrappers\SqlIntersectTable::hasUsefulIndex()
Method
private
Signature
private function hasUsefulIndex(mini\Table\Contracts\TableInterface $table, array $columns): bool
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$table |
mini\Table\Contracts\TableInterface |
required | Documentation missing |
$columns |
array |
required | Documentation missing |
Returns
bool
Documentation
Check if a table has useful indexes for membership testing
For has() to be efficient, the table needs an index on at least one of its columns. AbstractTable.has() uses eq() + exists() on the first unique/primary column it finds, or falls back to iteration.