Hi,
I have a little, but heavy problem. I have a dataobject with a has one relationsship which I manage in the CMS using the GridFieldHasOneRelationHandler module.
The problem is that I have more than 20.000 ContactPerson's in my database and even though I use the GridFieldPagination the load is terribly slow.
$gf = GridFieldConfig_RecordEditor::create();
$gf->addComponent(new GridFieldHasOneRelationHandler($this, 'PrimaryContactPerson'), 'GridFieldPaginator');
$field = new GridField('PrimaryContactPersonID', null, ContactPerson::get(), $gf);
$fields->addFieldToTab('Root.ContactPersons', $field);
I think it is this part which is the problem:
ContactPerson::get()
Any ideas?
Joel