-
Notifications
You must be signed in to change notification settings - Fork 42
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
Dapper OracleMappingType.RefCursor direction: ParameterDirection.Input not working #49
Comments
Hi, you can use BulkSql, a built-in feature of Oracle .net driver and implemented in Dapper.Oracle. I've tested this approach with 2000+ records at once, but for 35.000 you might want do do it in separate operations. Let me know if you have any further questions! |
@epaulsen Thank you for your answer .
|
The following solution worked for me: |
In my C# I have a list of objects with values to be inserted into a table in my Oracle db, I'm using a foreach to scroll through the list and send record by record to a function in a pck and there I make an insert. I'm using dapper to do this. But the problem is that it takes too long when there are too many records. Ex 35000 inserts. I wonder if I can send the entire list to the bank and there I can do all the inserts at once. I thought about the possibility of using an
OracleMappingType.RefCursor direction: ParameterDirection.Input
but the RefCursor doesn't work for the input type only for output. Would anyone know how to tell me a way to pass the entire list to the db and there I can make the inserts?The method below is the form I am using today but it takes a long time when I have a very large list of data.
The text was updated successfully, but these errors were encountered: