Closed (duplicate)
Project:
Content Construction Kit (CCK)
Version:
6.x-2.x-dev
Component:
General
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
25 Nov 2008 at 15:00 UTC
Updated:
25 Nov 2008 at 18:03 UTC
Currently, this is not possible. With this small patch it seems to work fine (more extensive tests are needed).
In hook_field_settings(database columns) you need to add "index => TRUE" for each column that you want to have an index for.
| Comment | File | Size | Author |
|---|---|---|---|
| indices.patch | 3.14 KB | killes@www.drop.org |
Comments
Comment #1
yched commentedThe main concern with this approach is that it creates indexes for all fields of a given type, which leads to index bloat, whereas the actual need for indexes is usage-driven (Views, custom queries...)
See #231453: Allow indexing columns for the existing thread about indexes and my current proposal for this.