开发者

A way to do news bar

开发者 https://www.devze.com 2023-03-03 19:57 出处:网络
I need to do a news bar but I don\'t want to add another database query in the page which contains six queries, so I\'m thi开发者_开发知识库nking about something like storing a one string param in txt

I need to do a news bar but I don't want to add another database query in the page which contains six queries, so I'm thi开发者_开发知识库nking about something like storing a one string param in txt file or maybe as a key in web.config and separate between each thread with a comma, and when I need to read these news I use the split() function to do the job.

Is this is a good practice or should I return to the usual DB query?


A query that fetches the news should not get too complex, so I would go for this instead of having to parse some arbitrary string.

0

精彩评论

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