View Optimization

Hi,

I have requirement to optimize a view. The structure of view is available as below with multiple select commands based on code. 

SELECT
`S`.`ID` AS `ID`,
(select `TEST_MASTER_DATA`.`LABEL` from `TEST_MASTER_DATA` where ((`TEST_MASTER_DATA`.`CODE` = `S`.`CODE`) and (`TEST_MASTER_DATA`.`FIELD` = 5)))
AS `STATUS_CODE`,

`S`.`INFO` AS `INFO`

FROM `Test_Sales` `S`
LEFT JOIN `Test_FollowUp` `F` ON `S`.`ID`= `F`.`ID` ;

I have multiple select commands with in the view to fetch the label from master data based on the code since we are saving code in the sales table.

Since we are triggering multiple calls with reference data the view is taking too much time in the user interface level.

Is there any way to optimize the view to improve the performance.

Thanks in Advance

  Discussion posts and replies are publicly visible