| |

VerySource

 Forgot password?
 Register
Search
View: 1759|Reply: 13

What should I do if the aspx page opens slowly?

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-31 17:20:01
| Show all posts |Read mode
The webpage I made with vs2005 seems to open slowly, and the server and network are not bad. The simplest page does not have any code. There are only three controls. You have to wait for it to open. Is there any way to speed it up?
There is connection.open () and connection.close () will not affect speed?
My index page needs to execute almost 10 stored procedures. In this case, should I execute close after 10 stored procedures after conn.open or open and close once for each stored procedure?
Reply

Use magic Report

0

Threads

34

Posts

17.00

Credits

Newbie

Rank: 1

Credits
17.00

 China

Post time: 2020-3-12 08:00:01
| Show all posts
The first time is slower, it won't be later, unless the webpage does have a problem
Reply

Use magic Report

0

Threads

4

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 Canada

Post time: 2020-3-12 09:15:01
| Show all posts
Use caching! Put the database operations in the server's cache, this will be a dozen times faster
Reply

Use magic Report

0

Threads

5

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-3-12 11:45:01
| Show all posts
Is it better to open and close each time a stored procedure is executed!
Reply

Use magic Report

0

Threads

64

Posts

45.00

Credits

Newbie

Rank: 1

Credits
45.00

 China

Post time: 2020-3-12 12:00:01
| Show all posts
Optimize the data access method, it should be slow to read data
Reply

Use magic Report

0

Threads

4

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-3-12 13:00:01
| Show all posts
Also, every time a web page is connected.open, it must be remembered close! Otherwise, the server will be exhausted!
Reply

Use magic Report

0

Threads

9

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-3-13 09:00:01
| Show all posts
You put the code to access the database into the constructor to execute,
There will be significant changes in speed, but what are the consequences, I do n’t think I need to say more
There are advantages and disadvantages, you measure it yourself
Reply

Use magic Report

0

Threads

5

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-3-19 12:15:01
| Show all posts
The first time was of course slow.
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-3-25 15:30:01
| Show all posts
Why is no one answering the latter question?
Is it one open, close or 10 open, close ???
Reply

Use magic Report

1

Threads

7

Posts

6.00

Credits

Newbie

Rank: 1

Credits
6.00

 China

Post time: 2020-3-26 05:00:01
| Show all posts
1 time

Make no mistake
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list