I have the below stored procedure that is taking close to an hour to complete. The result set is about 200K machines.
All I am doing is extracting a set of ids from a remote server,delete those ids in local server and then extract all details for those ids from remote server and insert it. The INSERT takes 90%, DELETE table 9% and SELECT INTO 1%.
id is primary key/clustered index.
DECLARE @ProcessDate DATETIME SET @ProcessDate = CONVERT(VARCHAR(10), DATEADD(DAY, -3, GETDATE()), 111) SELECT DISTINCT id INTO #temp_machines FROM table1 WHERE dt_modify >= @ProcessDate DELETE FROM table2 WHERE id IN ( SELECT id FROM #temp_machines ) INSERT INTO table2 SELECT * FROM table1 WHERE id IN ( SELECT id FROM #temp_machines )
Any suggestions on improving performance?
✓ Extra quality
ExtraProxies brings the best proxy quality for you with our private and reliable proxies
✓ Extra anonymity
Top level of anonymity and 100% safe proxies – this is what you get with every proxy package
✓ Extra speed
1,ooo mb/s proxy servers speed – we are way better than others – just enjoy our proxies!
USA proxy location
We offer premium quality USA private proxies – the most essential proxies you can ever want from USA
Our proxies have TOP level of anonymity + Elite quality, so you are always safe and secure with your proxies
Use your proxies as much as you want – we have no limits for data transfer and bandwidth, unlimited usage!
Superb fast proxy servers with 1,000 mb/s speed – sit back and enjoy your lightning fast private proxies!
99,9% servers uptime
Alive and working proxies all the time – we are taking care of our servers so you can use them without any problems
No usage restrictions
You have freedom to use your proxies with every software, browser or website you want without restrictions
Perfect for SEO
We are 100% friendly with all SEO tasks as well as internet marketing – feel the power with our proxies
Buy more proxies and get better price – we offer various proxy packages with great deals and discounts
We are working 24/7 to bring the best proxy experience for you – we are glad to help and assist you!