I have a big asp.net app that does many functions, some do alot of database
cross searching, some that does upload/download from database.
When two users use the application, sometimes, if one of these "big"
functions are called, the second user will be able to move around some more
with the smaller functions, but will reach a point when that user has to wait
for the "big" function to finish first. Other times, when one big function
is ran, the other user is automatically put to wait right away.
I need to know what determines when a user is put to wait. Is there a way
to make both user do things without having blocking the other user?
Shouldn't the application be already running on threads when the two user
uses the application? If so, what made them block? I'm using Access as the
database, but I know Access can handle multiple people editing it.
Thanx 4 1101
Jason,
ACCESS is not a real database....For access, only 1 user can
insert/update (database locking) even though several users may want to
insert/update different tables.
User waiting list is based on a FIFO(First In, First Out). If user A
came in first, user B will be put on a wait list until user A finished
his insert/update functions, and his CONNECTION is closed or he has
timed out.
If User A and User B just want to query (read only from the database)
then its fine....they can do it simutaniously.. ..
In otherwords, ACCESS sucks.....its not supposed to be used as a
multi-user database.
My 2 Cents,
neil
first, Access isn't meant for certain types of usage: http://support.microsoft.com/default...b;en-us;299973
"The Access ODBC Driver and Microsoft OLE DB Provider for Microsoft Jet are
not intended to be used with high-stress, high-concurrency, 24x7 server
applications, such as web, commerce, transactional, messaging servers, and
so on."
Nevertheless, I agree with you that under low-stress situations, it should
be able to handle concurrency. However, from your description, it seems as
though some of what you are doing is high-stress, as you describe some
functions as "big".
To answer your question, you'd need to figure out what's blocking. Each
user will be running on their own thread ( a thread per request). Perhaps
you are getting high CPU usage, if some of your process' pin the CPU @ 100%,
it'll lock all other threads.
If the problem is access, and you aren't willing to consider alternatives
(maybe it's a business constraint), check out: http://www.softcoded.com/web_design/...ing_access.php
Karl
--
MY ASP.Net tutorials http://www.openmymind.net/
"Jason Chu" <Ja******@discu ssions.microsof t.com> wrote in message
news:DD******** *************** ***********@mic rosoft.com... I have a big asp.net app that does many functions, some do alot of database cross searching, some that does upload/download from database. When two users use the application, sometimes, if one of these "big" functions are called, the second user will be able to move around some more with the smaller functions, but will reach a point when that user has to wait for the "big" function to finish first. Other times, when one big function is ran, the other user is automatically put to wait right away.
I need to know what determines when a user is put to wait. Is there a way to make both user do things without having blocking the other user? Shouldn't the application be already running on threads when the two user uses the application? If so, what made them block? I'm using Access as the database, but I know Access can handle multiple people editing it. Thanx
You may want to look into Page.Async. Basically, 2.0 builds in better
asynchronous operation support such that at least your request threads can
still respond to other users while the app waits for the DB (although
ditching Access would help a lot);
I took a look at the async stuff, pretty neat, but I've search far and wide
and haven't found a simple enough example to start me off.
from the looks of it, it looks like I'm going to use the PageAsyncTask way
to do async.
BUT from all the examples I've looked at, none of them refers to how do you
actually write the "begin" method that returns the IASyncResult, they all
assumed it's made SOMEHOW....
and I'm talking about the ie SqlCommand.Begi nExecuteReader( ...)
My method that takes a long time to execute isn't a webservice, nor a
SqlCommand method, it's just a custom method that takes a long time to
process.
How do I turn my method that take a long time, into one of those begin
method taht takes the callback and state parameter??
"Keith Patrick" wrote: You may want to look into Page.Async. Basically, 2.0 builds in better asynchronous operation support such that at least your request threads can still respond to other users while the app waits for the DB (although ditching Access would help a lot); This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Derek Fountain |
last post by:
Does Python have a timer mechanism? i.e. an "after 500 milliseconds, run
this bit of code" sort of thing?
|
by: Charlie Williams |
last post by:
I am having difficulty performing updates and deletions
on an Access database using the Update() method of the
OleDBDataAdapter. I can insert rows without a problem,
but I get a concurrency exception when trying to update
or delete.
I am quite sure that no concurrency conflicts actually
exist. Is there a reason why the data adapter I am using
may have a different row version that the database that
it got its data from?
|
by: Suzanne |
last post by:
Hi All
I'm having problems getting my data adapter to throw a concurrency
exception with an INSERT command. I want to throw a concurrency
exception if an attempt is made to enter a row into tb_table when a
row with the same int_UID already exists in there.
Here is my stored procedure:
if not exists (select int_UID from tb_table where int_UID = @aint_UID)
|
by: Mike Kelly |
last post by:
I've chosen to implement the "optimistic concurrency" model in my
application. To assist in that, I've added a ROWVERSION (TIMESTAMP) column to
my main tables. I read the value of the column in my select, remember it, and
then use it in the update. It works just fine when I have full control of the
whole process.
I want to do the same for my GridView/SqlDataSource combinations. I
typically select from a view and update the corresponding...
|
by: Vayse |
last post by:
In my save code, most of items save fine. But sometimes I get a concurrency
violation message.
"Concurrency violation: the UpdateCommand affected 0 of the expected 1
records."
It happens on the same records each time - once this happens, it never saves
ok again.
The immediate window also has states:
A first chance exception of type 'System.Data.DBConcurrencyException'
occurred in System.Data.dll
| |
by: Bob |
last post by:
While testing my my program I came up with a consistency exception. My
program consists of three datagridviews, One called dgvPostes which is the
parent grid and its two children,one called dgvPlans and the other dgvTanks.
What happens is as follows. I will either create or edit a record in the
datagridview dgvPlans and call the Updatedb procedure (code below). The
first save works OK. Then when that is done, on the same record I will try...
|
by: William E Voorhees |
last post by:
I'm updating an Access database in a windows multi-user environment.
I'm using disconnected data
I read data from an Access Data table to a data object
I update the data object from a windows form
I save the data from the data object to the Access Data table using a data
adapter as follows:
|
by: russganz |
last post by:
It seems to me there are real problems with the datagridview (along
with the detailsview and form view) control when using optimistic
concurrency with fields that can be null. Trying to use these controls
I have many times had the update not work with no error generated.
After much experimentation I have narrowed it down to how the Update
Command is generated.
To make optimistic currency work, the builder generated an update
statement...
|
by: John |
last post by:
Hi
I have a vs 2003 winform data app. All the data access code has been
generated using the data adapter wizard and then pasted into the app. The
problem I have is that I am getting a data concurrency error on
mydataadapter.update() method. I know that there is no data concurrency
problem as I am the only user testing the app. Obviously the error is
misleading. What can I do from here to fix this problem?
Thanks
|
by: John |
last post by:
Hi
I have a perfectly working vs 2003 winform data app. All the data access
code has been generated using the data adapter wizard and then pasted into
the app.
I had to add a new field in the backend access db which I did. I then
dragged the table to the dataset and deleted the old table from the dataset
it so the dataset can see the new field as well.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |