Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiuser Simultaneous INSERT and SELECT queries on Firebird database, deadlock scenario generated. [DNET52] #62

Closed
firebird-automations opened this issue Aug 3, 2006 · 5 comments

Comments

@firebird-automations
Copy link

Submitted by: Meghna Patel (meghna)

Assigned to: @carlosga

Attachments:
Firebird Testing.zip

Hello,
I have a problem regarding Multiple users Simultaneous using INSERT and SELECT queries on Firebird database. The detail problem scenario is as follows:-
I have a table and multiple users access the table at the same time. If one user is inserting the data , another user at the same time fires a select query to get the max no from the same table. Now at one point my http://VB.Net application hangs.

Now is it possible to use some type of locking system to lock the data until one user finishes the insert query and does not allow the select query to fire until the process is complete.

This is a very urgent requirement.
Please find the code below to understand the problem scenario:-

Code For INSERTING DATA:-
fbcmd = New FbCommand("Insert into Dummy_tab values(" & i & ",'Mauleen')", fbcon)
fbcmd.ExecuteNonQuery()

Code for getting the max no:-
fbcmd = New FbCommand("Select max(id) from dummy_tab", fbcon)
fbcmd.ExecuteScalar()

Thank you

@firebird-automations
Copy link
Author

Commented by: @carlosga

It looks like a problem with the isolation levels, please send the quets to the .net provider devel list.

@firebird-automations
Copy link
Author

Modified by: Meghna Patel (meghna)

Attachment: Firebird Testing.zip [ 10110 ]

@firebird-automations
Copy link
Author

Commented by: @carlosga

Please, can you send the question to the .net provider devel list ??

@firebird-automations
Copy link
Author

Commented by: @carlosga

Not a bug

@firebird-automations
Copy link
Author

Modified by: @carlosga

status: Open [ 1 ] => Closed [ 6 ]

resolution: Won't Fix [ 2 ]

Fix Version: 2.0 [ 10047 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant