Hi Remya,
We have been strugeling with this issue for a long time. Since there is no way to pass parameters in CE functions there is no way to select data from graphical CV\AV that use parameters.Whenever we mixed up CE functions with regular SQL we experinced performance issues.
We suceeded to build it for CV\AV which doesnt use parameters. I dont have the code here so if it interest you i can send it on monday.
Thanks,
Amir