Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Administration - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 6525

A problem of concurrency on a small table

$
0
0
Hi all,i have a problem on an application.Details:Table AAA, about 500 records, not growingMany users (about 100) make a read from this table, many times (about 120 times for minute)Others users write on this table, about 10 times for minuteExample:[b]SELECT A_FIELD FROM AAA WHERE B_FIELD = 'xxx'[/b] (about 50/60 times for minute)[b]UPDATE AAA SET A_FIELD=A_FIELD+1 WHERE B_FIELD = 'xxx'[/b] (about 10 times for minute)A_FIELD is a Decimal(10,0), B_FIELD is a Char(100)Normally, every select and every update take 1/2 ms, MAX 10msBut sometimes (every 10 minutes, sometimes), the UPDATE take 10, 20 seconds!A problem of concurrency, not?What kinds of controls or modification i can make to resolve this problem?(i cannot modify the application, i can only work on db setting, index, etc.)(which other information you need to suggest something? I can say tha snapshot isolation situation of db is the following:name snapshot_isolation_state snapshot_isolation_state_desc is_read_committed_snapshot_on recovery_model recovery_model_desc collation_namemaster 1 ON 0 3 SIMPLE Latin1_General_CI_AStempdb 0 OFF 0 3 SIMPLE Latin1_General_CI_ASmodel 0 OFF 0 3 SIMPLE Latin1_General_CI_ASmsdb 1 ON 0 3 SIMPLE Latin1_General_CI_AS[b]db_name 1 ON 1 3 SIMPLE Latin1_General_CI_AS[/b]need other?Thank you very much!Paolo

Viewing all articles
Browse latest Browse all 6525

Trending Articles