开发者

Should a 500 item lookup list be data cached on server?

开发者 https://www.devze.com 2022-12-18 14:27 出处:网络
I have a开发者_Go百科 column of 500 names <30 characters, that are accesses via jQuery autocomplete plugin as a drop down list. Should I data cache this list which will not change very often, or wi

I have a开发者_Go百科 column of 500 names <30 characters, that are accesses via jQuery autocomplete plugin as a drop down list. Should I data cache this list which will not change very often, or will I not gain much of a performance benefit?


Why not measure both approaches and then make a decision based on actual data, rather than guesses?


Cache unless you got trouble.

try to cache both in server side, and in client side.

on the client side since you said that you using jquery, I know there is a auto-complete jquery plugins that can do it for you.

client side is good to only one page, so if you can do also server side.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号