Click here to Skip to main content
15,915,019 members
Home / Discussions / Database
   

Database

 
AnswerRe: Accessing mdiParent form menu from mdiChild form via code Pin
Richard MacCutchan14-Jul-10 1:28
mveRichard MacCutchan14-Jul-10 1:28 
QuestionAccess 2007 - black hole forms Pin
john john mackey13-Jul-10 7:30
john john mackey13-Jul-10 7:30 
AnswerRe: Access 2007 - black hole forms Pin
Richard MacCutchan13-Jul-10 22:19
mveRichard MacCutchan13-Jul-10 22:19 
GeneralRe: Access 2007 - black hole forms Pin
john john mackey15-Jul-10 12:05
john john mackey15-Jul-10 12:05 
AnswerRe: Access 2007 - black hole forms Pin
Eddy Vluggen14-Jul-10 4:31
professionalEddy Vluggen14-Jul-10 4:31 
GeneralRe: Access 2007 - black hole forms Pin
john john mackey15-Jul-10 12:10
john john mackey15-Jul-10 12:10 
GeneralRe: Access 2007 - black hole forms Pin
Eddy Vluggen15-Jul-10 12:34
professionalEddy Vluggen15-Jul-10 12:34 
QuestionInteresting SQL Server 2008 problem Pin
SomeGuyThatIsMe12-Jul-10 4:10
SomeGuyThatIsMe12-Jul-10 4:10 
I have to servers that are just about identical in terms of hardware and performance. One dev and one production, both running sql server 2k8. Both of them afaik are configured the same, dev just has an older smaller copy of the production database, its only smaller because of its age. One of its tables has 40M rows, the same table in prodcution has 60M. I needed to make a query faster so i did soem research and since this table (i dotn want to hear any complaints about this next bit) doesnt have and really cant have a PK i was looking at making a non clustered index, or at least changing the one it has. There are so many inserts, updates and deletes i imagine a clustered index would get destroyed in a few hours, or cripple performance.

There is currently an index on Id, its not unique just a way of grouping records that go together. I read about the INCLUDE keyword that was new in server 2k8 and how it should speed up selects if i included the columns in the where and select clause in the index so it wouldnt have to do the RID or Bookmark lookup(its where 99% of my time was bieng taken).

So i changed the index in dev, added every column in the table(since we always use every column in the table any time we go to it, and there's only 10 or so).

so the index was CREATE INDEX uix_name id INCLUDE (col1, col2, col3, ...). The SELECT's performance skyrocketed, but since i now have an index that looks at every column, updates and deletes should run slower..much slower. They didnt, they ran even faster. This is the part i dont understand at all.

I put the same index on the production server, and the select ran faster, but updates, deletes, and inserts all got much much slower(this i would have expected).

for a comparison i uploaded 1M records into the table, on dev it took 2:48 after index, it wouldnt finish before(through our wep app not through the db), in production it took 4:21 ish(no index changes) and over 6 minutes after i changed the index.

Can anyone please offer any insight as to why my dev server got faster and the prodcution server did what we thought it should and got slower? I have no idea where to even start looking.

Thanks
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

JokeRe: Interesting SQL Server 2008 problem Pin
Mycroft Holmes12-Jul-10 14:45
professionalMycroft Holmes12-Jul-10 14:45 
GeneralRe: Interesting SQL Server 2008 problem Pin
SomeGuyThatIsMe13-Jul-10 2:59
SomeGuyThatIsMe13-Jul-10 2:59 
GeneralRe: Interesting SQL Server 2008 problem Pin
Corporal Agarn13-Jul-10 5:12
professionalCorporal Agarn13-Jul-10 5:12 
GeneralRe: Interesting SQL Server 2008 problem Pin
SomeGuyThatIsMe13-Jul-10 5:17
SomeGuyThatIsMe13-Jul-10 5:17 
Questionbcp and int>ASCII code conversion [modified] Pin
devvvy11-Jul-10 20:00
devvvy11-Jul-10 20:00 
AnswerRe: bcp and int>ASCII code conversion Pin
Mycroft Holmes11-Jul-10 23:18
professionalMycroft Holmes11-Jul-10 23:18 
GeneralRe: bcp and int>ASCII code conversion Pin
devvvy12-Jul-10 0:29
devvvy12-Jul-10 0:29 
GeneralRe: bcp and int>ASCII code conversion Pin
Mycroft Holmes12-Jul-10 14:32
professionalMycroft Holmes12-Jul-10 14:32 
GeneralRe: bcp and int>ASCII code conversion Pin
devvvy12-Jul-10 15:44
devvvy12-Jul-10 15:44 
GeneralRe: bcp and int>ASCII code conversion Pin
Mycroft Holmes12-Jul-10 17:29
professionalMycroft Holmes12-Jul-10 17:29 
GeneralRe: bcp and int>ASCII code conversion Pin
devvvy12-Jul-10 18:02
devvvy12-Jul-10 18:02 
GeneralIs it possible not to specify format file? Pin
devvvy13-Jul-10 0:29
devvvy13-Jul-10 0:29 
GeneralIs it possible to skip -f switch (i.e. not supply format file) and let bcp to do this job herself (i.e. infer field type auto like old days?) [modified] Pin
devvvy13-Jul-10 0:37
devvvy13-Jul-10 0:37 
Questionsum of a column upto the current row for each row Pin
indian1439-Jul-10 8:31
indian1439-Jul-10 8:31 
AnswerRe: sum of a column upto the current row for each row Pin
Eddy Vluggen9-Jul-10 8:59
professionalEddy Vluggen9-Jul-10 8:59 
AnswerRe: sum of a column upto the current row for each row Pin
CitrusTech9-Jul-10 9:03
CitrusTech9-Jul-10 9:03 
AnswerRe: sum of a column upto the current row for each row Pin
Bernhard Hiller11-Jul-10 22:10
Bernhard Hiller11-Jul-10 22:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.