Db\Index
Class Phalcon\Db\Index
implements Phalcon\Db\IndexInterface
Allows to define indexes to be used on tables. Indexes are a common way to enhance database performance. An index allows the database server to find and retrieve specific rows much faster than it could do without an index
// Define new unique index $index_unique = new \Phalcon\Db\Index( 'column_UNIQUE', [ 'column', 'column' ], 'UNIQUE' ); // Define new primary index $index_primary = new \Phalcon\Db\Index( 'PRIMARY', [ 'column' ] ); // Add index to existing table $connecti