| |

VerySource

 Forgot password?
 Register
Search
View: 813|Reply: 4

Ask a query question and share a problem solved some time ago

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-3-12 15:00:02
| Show all posts |Read mode
problem:
I have a library with more data, some tables have 4 million data, and the server is on the public network. Since there is more data, there is a query problem. When I query, I add certain conditions ( (Such as time, flashback) may take more than 10-20 minutes, the results can not come out immediately, at this time the server program on the server may behave abnormally, it feels like resources are preempted by the SQL server, and the client program executes some queries (Or querying the database on one or two machines), if one or two of the queries are abnormal, the other queries will also be abnormal. The specific performance is that if the client will prompt the query timeout, I think the sql server Isn't the query so weak? !! !! !! What we are doing is querying, but not modifying, we can do one piece of data at the same time, so this question is very unclear! Hope that experienced can help, thank you!


Resolving sharing:
Some time ago, I raised a question on this page. My database is always unable to insert data into it after running for a long time. At this time, there may be 1.2 million records in a table in the database, and then I will Delete the records, the server program can run again (run it first), this situation occurs after a short period of time, and with the deletion, the number of records in this table may be less and less, and once slowly changed It ca n’t be inserted if it is 700,000. I also asked here, it has not been resolved, and the code obtained through the server program is also foggy. One day, I suddenly wondered if there could be any help in the event log. Information, view

Automatic growth of file 'DBSERVER_Data' in database 'DBSERVER' has been cancelled or timed out after 40008 milliseconds.
Use ALTER DATABASE to set a smaller FILEGROWTH or set a new size.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

After reading the help of ALTER DATABASE, I felt a bit dizzy, and then I felt that 40008 is very strange, that is, it has grown automatically for a long time and there is no response. Then I think that my setting data file is 10%, and the initial 10% may be normal, but My data file at that time already had more than 10 G, I changed the setting to 5M each time, the problem was solved, the operation is quite normal recently, and the data file is now 28 G.
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-6-19 10:30:01
| Show all posts
I have recently encountered this problem and it has not been resolved.
thank you very much!
Reply

Use magic Report

0

Threads

93

Posts

46.00

Credits

Newbie

Rank: 1

Credits
46.00

 China

Post time: 2020-6-25 00:45:01
| Show all posts
The landlord is really an enthusiastic person, great field
Reply

Use magic Report

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

 Author| Post time: 2020-7-23 10:30:01
| Show all posts
In fact, this is also a problem of too long statement execution time! I made a stored procedure in the last 2 days. When the database exceeds a certain size, the records from N days ago are deleted, but the first time I execute it, because of too much historical data, the running time is too long. Check the activity in the enterprise manager. After deleting the records of one table, it stopped in the process of deleting the next table (including pictures, the blocked spid has 18,600 items), but the server program resumed normal operation after blocking for a period of time (data not processed) speed.

Can someone explain these phenomena?
Reply

Use magic Report

0

Threads

3

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-7-23 15:30:01
| Show all posts
collect it
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