上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 24 下一页
查询速度慢的原因很多,常见如下几种 1、没有索引或者没有用到索引(这是查询慢最常见的问题,是程序设计的缺陷) 2、I/O吞吐量小,形成了瓶颈效应。 3、没有创建计算列导致查询不优化。 4、内存不足 5、网络速度慢 6、查询出的数据量过大(可以采用多次查询,其他的方法降低数据量) 7、锁或者死锁(这也是查询慢最常见的问题,是程序设计的缺陷) 8、sp_lock,sp_who,活动的用户查看,原因是读写竞争资源。 9、返回了不必要的行和列 10、查询语句不好,没有优化 可以通过如下方法来优化查询 1、把数据、日志、索引放到不同的I/O设备上,增加读取速度,以前可以将Temp... Read More
posted @ 2011-10-27 10:52 咸鱼公子 Views(870) Comments(0) Diggs(0) Edit
string url = new Uri(m_uri, match.Groups["url"].Value).AbsoluteUri;这样可以拼接出URL地址获取match中的文本string text = match.Groups["text"].Value;substring 和indexof//url = "http://www.gome.com.cn/product/1000014732.html" pku = url.Substring(url.LastIndexOf("/") + 1, url.Leng Read More
posted @ 2011-10-18 15:11 咸鱼公子 Views(131) Comments(0) Diggs(0) Edit
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE hibernate-configuration PUBLIC"-//Hibernate/Hibernate Configuration DTD 2.0//EN""http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"><hibernate-configuration><session-factory> Read More
posted @ 2011-09-16 09:04 咸鱼公子 Views(230) Comments(0) Diggs(0) Edit
/*排序*/int [] nums={44,22,33,55,99};int tp;for(int i=0;i<nums.length;i++){int index =i;int keyval=nums[i];for(int j=i;j<nums.length;j++){int ns =nums[j];if(keyval>ns){index=j;keyval=nums[j];}}tp=nums[i];nums[i]=nums[index];nums[index]=tp;}///java中的foreachfor(int nv:nums){System.out.println(n Read More
posted @ 2011-09-05 16:00 咸鱼公子 Views(114) Comments(0) Diggs(0) Edit
using System;using System.Collections.Generic;using System.Text;using System.IO;using System.Collections;//using iTextSharp;//下载这个DLL即可using iTextSharp.text;using iTextSharp.text.pdf;namespace PDFGenerator{ class Program { static void Main(string[] args) { Document document = new Document(); PdfWrit Read More
posted @ 2011-08-30 15:35 咸鱼公子 Views(490) Comments(0) Diggs(0) Edit
Intelligencia.UrlRewriter.dll aspx重写为html实例1、http://urlrewriter.net/ 下载解压缩后把Intelligencia.UrlRewriter.dll 文件添加引用到web工程里。2.web.config配置:<configSections> <!--UrlRewriter--> <section name="rewriter" requirePermission="false" type="Intelligencia.UrlRewriter.Config Read More
posted @ 2011-08-29 13:40 咸鱼公子 Views(296) Comments(0) Diggs(0) Edit
1.创建表CREATE TABLE MENU ( name nvarchar(50) NOT NULL PRIMARY KEY, senior nvarchar(50) NULL); INSERT INTO MENU values ('文件',NULL), ('新建','文件'), ('项目','新建'), ('使用当前连接查询','新建');WITH lmenu(name,senior) as ( SELECT name,senior from menu )2.语句WITH lme Read More
posted @ 2011-08-26 17:35 咸鱼公子 Views(204) Comments(0) Diggs(0) Edit
很久以前,有一家小商店,靠卖些水果过日子。竞争是如此激烈,为了生存,他们不得不自己进货,把货堆到自己的房间内,如果顾客需要,他们有时还不得不给顾客送货,总而言之,他们将所有该干的活都干了,只为了能赚到点生活费,这就是艰辛的人生。一个web程序或者一个winform程序,简单模式的程序,我们通常都如那个水果店的老板一样,把所有的功能都集中到这个程序里,在简单的状况下,这很好。水果店生意越来越好,老板的资金慢慢雄厚了,他注意到了卖其他东西比卖水果更赚钱,比如说家电、服装。于是,老板一口气又开了几家店。生意规模越来越大,钱也越赚越多,老板心花怒放。然而好景不长,亚洲金融风暴来袭,利润率急剧下降。老板 Read More
posted @ 2011-08-26 16:28 咸鱼公子 Views(879) Comments(0) Diggs(0) Edit
---js循环var i;for(i=0;i<=10;i++){} Read More
posted @ 2011-08-18 13:58 咸鱼公子 Views(145) Comments(0) Diggs(0) Edit
1、write.lock出现在向索引中增加文档时,或是将文档从索引中删除时。会在IndexWriter被初始化时创建,然后会在调用IndexWrtier的close()方法时被释放。会在IndexReader使用delete方法删除文档时创建,并在调用IndexReader的close()方法时被释放2、commit.lock主要是与segment合并和读取的操作相关。另外,当调用IndexWriter的addIndexes()或mergerSegments()方法时,都会生成这个锁。3、2.0中有一个新类IndexModifier,集成了IndexWriter的大部分功能和IndexRead Read More
posted @ 2011-08-15 11:41 咸鱼公子 Views(322) Comments(0) Diggs(0) Edit
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 24 下一页