on 2012 Oct 11 12:09 PM
I have created a staging table by making a copy of an existing table on my production database. I am going to do a reload to this table using reload script and dat file from another dump. No user will be accessing my staging table that I will be doing a load to, they do not even know if this table exist, will I be able to do a load to this table without affecting the production db which will be in heavy use while I am doing the load? does this make sense?
Request clarification before answering.
Yes, you can do a load into your staging table on your production database without affecting your users too much. The only reason that your connected users may see any affect would be caused by the CPU and/or disk load that your LOAD TABLE command would be putting on your server. E.g if you are loading a very large table then the LOAD TABLE operation is going to do a lot of disk I/Os to read the dump file and (possibly) to write the new table pages to disk, and the extra I/O operations could slow down other operations on the computer if the disk cannot keep up with the I/O requests.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
...so to be "nice" to your users, you could give your connection a lower priority in case you expect a noticable effect for them otherwise, such as
SET TEMPORARY OPTION priority = 'Below Normal'; LOAD TABLE ...;
User | Count |
---|---|
87 | |
10 | |
9 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.