U can do one thing. U can define one array variable which will store all ur
required values like very satisfied, satisfied etc. Then u perform whole
operation in loop. Inside that loop if u know where to put rquied values like
satisfied, very satisfied etc. means that if it is fixed then u just write code
inside if ....Else if..... for performing the operation. It will become easy for
u. And also it makes sense for u.
If then also u get less speed then tell me, bcaz i am also working with database
and worked with more that 2,00,000 rows at a time. And i know that how to work
with it. I have one another method. But then u just explain me ur problem in
deep.
I hope that above option work correctly for u.