for only query that used in module it should be:
$schema['node_field_matrix_data']['primary key'] = array('vid', 'field_name');
but i recommend add one more for nid:
$schema['node_field_matrix_data']['indexes'] = array('nid' => array('nid'));

Comments

aaron1234nz’s picture

Version: 6.x-1.4 » 6.x-2.x-dev
Status: Active » Fixed

Thanks for the suggestion. I've added the indexes in the latest 2.x dev version.

greenmother’s picture

oh, sorry, primary index should be
$schema['node_field_matrix_data']['primary key'] = array('vid', 'field_name', 'row', 'col');

greenmother’s picture

Status: Fixed » Active
aaron1234nz’s picture

Status: Active » Fixed

I've only implemented simple indexes on nid and vid as database data integrity checking is not needed here.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.