Click to See Complete Forum and Search --> : *Possible Concurrency Issues When Saving to a Text File*


|IMY|
06-17-2006, 07:19 AM
Hi Guys,

I have an asp script that increments a variable each time it is called in an external text file. I would like your help on understanding the behaviour of the data and how asp will handle updates to the text file from multiple users? Will it be able to acknowledge all the user requests and increment the variable by acknowledging each user request and adding to the file sequentially? How well does asp handle concurrency issues when saving or updating a variable in an external text file would probs be the question I need to ask here?

Your help and advice will be highly regarded and greatly appreciated.

With Kind Regards,

Imran :)

russell
06-17-2006, 06:56 PM
unless you have an awful lot of traffic, or the file is large, then it should be ok. You'd be better off with a database though, as ADO will serialize the requests better, and most databases are built to handle concurrency.