static EVE_NewsTemplate find(RefRecId _refRecId, boolean _forUpdate = false)
{
EVE_NewsTemplate tbl;
;
if (_refRecId > 0)
{
tbl.selectForUpdate(_forUpdate);
select firstOnly tbl
index hint RecId
where tbl.RecId == _refRecId;
}
return tbl;
}
Reading the AX 2012 best practices it seems to indicate that there is always an index created on the RecId field.
No hay comentarios:
Publicar un comentario