Is it just a simple relation, or are there more conditions? You may need to look at the generated query. If it's a simple key lookup it should be pretty fast. If not, you may wish to run it withEXPLAIN FORMAT=JSONto profile it further.
'RelatedApps' => [
'entity' => 'Newsman:App',
'type' => self::TO_MANY,
'conditions' => [
[ 'parent_app', '=', '$id' ]
],
'primary' => true,
'api' => true
],
We use essential cookies to make this site work, and optional cookies to enhance your experience.