Replies: 14 comments 39 replies
-
@gsbelarus , write speed is affected by many factors. Please check this thread. |
Beta Was this translation helpful? Give feedback.
-
Please, show table stats (gstat -r -t GD_DOCUMENT) for the start. Also, it is interesting to know how many random writes IOPS by 1-thread with queue depth 1 is possible to reach on this system. |
Beta Was this translation helpful? Give feedback.
-
11616358 IOs / 65812 sec = 177 iops, looks like HDD |
Beta Was this translation helpful? Give feedback.
-
No, it is NVMe with maximal performance settings: |
Beta Was this translation helpful? Give feedback.
-
Right now, I have run a stored procedure where there same updates are executed in blocks by 1000 records. Each update is run with parametrized statement in autonomous transaction. I'll come with the results. |
Beta Was this translation helpful? Give feedback.
-
What is the output of |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
So, I have started over. I did complete backup-restore and now going to execute update on the fresh database. The stats before start are as follows:
BTW, the database restoration time is 4:10:00, which is not bad for a database file of 390 GB. I will come with the results tomorrow. |
Beta Was this translation helpful? Give feedback.
-
as the process is going on, here is a typical disk activity: |
Beta Was this translation helpful? Give feedback.
-
and here is CPU activity: |
Beta Was this translation helpful? Give feedback.
-
So,
Now, the update operation even slower, nearing 20h.
gstat output:
By all means this machine is performant, but this update... how is it possible to be so slow? |
Beta Was this translation helpful? Give feedback.
-
here is disk's performance for different scenarios |
Beta Was this translation helpful? Give feedback.
-
I'm asking for the solution because our customer gives us a 4-hour window to update the production database. I never thought that just assigning values to 3 fields could take so long. So, now I'm wondering what trick would be applied here to get the task done. And I'm confused because the restoration of the whole database takes just 4:10:00. Well, it is multithreaded, but even under FB3 it took 10 hours, twice as less... On the same server, on the same file. Weird. |
Beta Was this translation helpful? Give feedback.
-
13 minutes instead of 18 hours. Wow! Amazing work by Vlad! Huge thanks — the donation's on me!
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The performance is just depressing. 18 hours....
Beta Was this translation helpful? Give feedback.
All reactions