提高sqlserver中的查询性能

编程入门 行业动态 更新时间:2024-10-08 20:33:52
本文介绍了提高sqlserver中的查询性能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

亲爱的,请帮助我。 我遇到了严重的问题。我的要求是提高sqlserver中查询的性能。 现在我在交易表中工作。发生以下步骤 1.我的查询从表中检索4000个手机号码(使用东西)然后将这些手机号码发送到另一个网关发送短信。 2.从网关接收响应,将其插入另一个包含手机号码详细信息的表格。 3.删除交易表中的记录基于手机号码。 此过程继续。 工作正常当记录的数量较少(少于10万)时。但是当表有20-25万条记录时,问题就出现了。选择4000条记录需要3-4分钟。当时正在插入其他记录。所以如何解决这个问题。

Dear All,Please help me. I am in a serious issue.My requirement is to increase the performance of the query in sqlserver. Now i am working in a transaction table.The following steps occurs 1. my query retrieves 4000 mobile numbers from the table (using stuff) and then send these mobile numbers into another gateway for sending sms. 2. Receive the response from the gateway, Insert it into another table with mobile numbers details. 3. Delete the records from the transaction table based on the mobile numbers. This process continues. It works fine when there is less number of records(less than 10 lakh).But when the table has 20-25 lakhs of records then the problem arises.Selecting the 4000 records takes 3-4 minutes.Within that time other records are inserting.So How to solve that problem.

推荐答案

从这里开始: msdn.microsoft/en-us/library/ff650692.aspx [ ^ ] msdn.microsoft/en-us/library/ff650699.aspx [ ^ ] Start here : msdn.microsoft/en-us/library/ff650692.aspx[^] msdn.microsoft/en-us/library/ff650699.aspx[^]

检查这个答案,我已经解释了许多主题的内容以改进。 如何提高网站性能? [ ^ ] 检查数据库优化为您的问题。 Check this answer, I have explained things on many topic to improve things. How to improve performance of a website?[^] Check Database optimization for your issue.

更多推荐

提高sqlserver中的查询性能

本文发布于:2023-10-19 17:33:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1508265.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:性能   sqlserver

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!