我的应用程序速度慢 [英] Slowness in my application

查看:68
本文介绍了我的应用程序速度慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,

我用master开发了普通的3层应用程序,并与ajax控件一起使用,
但是菜单是动态的,就像具有菜单详细信息的数据库一样,
虽然每次加载时间我的应用程序都很慢,但是如何加快速度!

如果我做错了,请纠正我.

Hi friends,

I developed normal 3 tier application with master and using with ajax controls,
But the menus are dynamic like database having the menu details,
While every loading time my application is very slow how to speed up that!!

Please correct me if i''m doing wrong.

推荐答案

vishnumca123,

可以加快系统速度的事情之一就是缓存查询.如果您的菜单在数据库中,则我认为它们不会经常更改.由于DBMS系统会自动为您执行缓存查询,因此是否存在缓存辩论是否存在争议.最好的做法可能是使用日志记录框架,例如 NLog [
将问题分解成小块,可以更轻松地解决.祝您好运,当您发现特定的性能问题并需要帮助时,请回来!

霍根
vishnumca123,

One of the things that you could do to speed up your system is to cache your queries. If your menus are in the database, I assume they don''t change very often. There is debate to whether caching queries is faster as DBMS systems do this automatically for you. What is probably your best course of action is to use a logging framework like NLog[^] and log out performance numbers to a file. When dealing with performance, its not always a simple one fix shot, but an overall issue that requires multiple fixes. By logging out when things happen, you can begin to profile sections of your code that are a bottleneck and optimize them. One trap that I fell into early in my development was hitting the database for everything because it was "fast". While the DB is fast, if you use it inefficiently, there is little gain. I''m not sure if you''re doing this or not, but its another area to consider.

Break the problem into smaller pieces and it''ll be easier to solve. Good luck and come back when you have specific performance issues as you identify them and need help!

Hogan


这篇关于我的应用程序速度慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆