我正在尝试优化此查询:
SELECT ob.id, obs.relation
FROM object_relation obs , object_table ob
WHERE obs.parent_id = 'ID_being_passed_as_parameter'
AND ob.id = obs.child_id
AND ob.deleted_object_flag=0
AND ob.id_prefix in ('prefix_variAble_passed')
ORDER BY (SELECT m.value FROM metadata_table
m WHERE ob.version_id=m.version_id AND m.name='SORTING_CONDITION' )
是否可以优化它?任何建议都会有很大帮助