Hi,
I've a .Net 3.5 windows application.One of the modules uses a Oracle stored proc which returns a recordset to the C# client.
I just want to know which one is a better approach among the following two[wrt. code-readability and performance.]:
1.If I write a multiple CASE statement in the stored proc(SP) itself, then the recordset count is about 125.Here, the code of SP looks a bit messy.But on the positive side, the number of rows returned to the client are less.
2.If I dont use the CASE statement, then the recordset count is @375.In this approach, I will move the "case" logic of SP to the C# middler tier...may be using LINQ/delegates... Here, the SP code is cleaner but the number of records returned is high.
So, shall i go with approach 1 or 2?
Thanks for reading.