Webmaster Forums Banner Professional Hosting from Just Host
Welcome Guest Search | Active Topics | Members | Log In | Register

Index management and database availability Options
tan
Posted: Thursday, May 29, 2008 10:50:09 AM
Rank: Advanced Member
Groups: Member

Joined: 1/31/2008
Posts: 62
Points: 186
Location: Pakistan
Hello


I'm working on an application which is mainly used to look up compressors and their data which are held in documents.

This is a simplified representation of the tables of importance:

Code:
Document
--------
Id (int, identity) (PK)
Number (nvarchar(50))

Compressor
----------
DocumentId (int) (PK, FK)
Id (int, identity) (PK)
Name (nvarchar(50))

CompressorData
--------------
CompressorId (int) (PK, FK))
Id (int, identity) (PK)
Value (nvarchar(50))

The tables are linked as follows:
Document -> Compressor -> CompressorData

Non clustered indexes are created on Document.Number and Compresor.Name because these fields are used for querying.

At certain points corrections will be released on compressors which
will result in:
- Creating new documents with new document numbers (note that a non clusterd index exists on Document.Number).
- Copying affected compressors of existing documents into the new documents (note that a non clusterd index exists on Compressor.Name).
- Copying the data of the affected compressors into the new documents.

This can result in creating ten's of new documents and copying hundreds compressors and thousands compressor data records.

My question:

Will the users still be able to query for compressors while corrections are released (thinking about indexes which need to be modified) or will their be so many locks held that the database becomes unusable?


Thanks in advance,

Tan
Sponsor
Posted: Thursday, May 29, 2008 10:50:09 AM
manzor
Posted: Thursday, May 29, 2008 10:52:06 AM
Rank: Advanced Member
Groups: Member

Joined: 1/31/2008
Posts: 31
Points: 93
Location: UK
your user might be blocked. try to run in off hours .. then see what happen
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

ASPNET Theme created by Boskone (Dan Ferguson)
Powered by HaqTech.Com
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.
This page was generated in 1.222 seconds.