Prae
Prae
CC#
Created by Prae on 4/4/2024 in #help
Designing a business automated task and trying to optimize the queries performed to the database
in fact every 100 row i perform a savechanges, and we thought it was fine to send insert request for 100 rows at once. It's not that critical so we didnt benchmark more...
10 replies
CC#
Created by Prae on 4/4/2024 in #help
Designing a business automated task and trying to optimize the queries performed to the database
to be honest the 100 row number was determinated by my technichal lead. It's a setting we'll be ready to adjust after we enter in production if we see any problem
10 replies
CC#
Created by Prae on 4/4/2024 in #help
Designing a business automated task and trying to optimize the queries performed to the database
Thanks to you both anyway
10 replies
CC#
Created by Prae on 4/4/2024 in #help
Designing a business automated task and trying to optimize the queries performed to the database
Hello guys, I understand it was hard to give definitive answer. "Could you load the entire file into a staging table, then execute batch operations on that?" => Yes, i load everything in memory and then loop over chunked arrays of 100 rows. For each chunk, i query everything i need for those 100 rows, and then i feed a dictionnary for each query i performed, using as key a value type (so a struct if multiple elements were involved) of what was used to filter the entities in my repository. Then, i loop over the hundred rows and perform my task. I like the simplicity of use of dictionnaries to retrieve the datas I need for the current row, i didnt have to duplicate every conditions. For example i had to search a list of customers based on a name, so in my cache i have a dictionary with the name as key and all the customers i had in db as value.
10 replies
CC#
Created by kailash T. on 12/11/2023 in #help
is anyone using the interop library for converting doc to docx ..ur input much needed
you managed to make it work ?
50 replies
CC#
Created by kailash T. on 12/11/2023 in #help
is anyone using the interop library for converting doc to docx ..ur input much needed
anyway looking on google with your error message you have a few page you can rely on
50 replies
CC#
Created by kailash T. on 12/11/2023 in #help
is anyone using the interop library for converting doc to docx ..ur input much needed
50 replies
CC#
Created by kailash T. on 12/11/2023 in #help
is anyone using the interop library for converting doc to docx ..ur input much needed
try this "Start > Run > dcomcnfg (or “mmc -32″ and then add the Component Services snap-in manually if you can’t find the app under step 3) Navigate to Component Services > Computers > My Computer > DCOM Config Locate the MS application giving you trouble (eg: “Microsoft Excel Application” for Excel or “Microsoft Word 97 – 2003 Document” for Word) Right click > Properties On the security tab: Select Customize under Launch and Activation Permissions and click Edit… Add the account under which the site is running (eg: Network Service) and assign Local Launch & Local Activation permissions Voila!"
50 replies
CC#
Created by kailash T. on 12/11/2023 in #help
is anyone using the interop library for converting doc to docx ..ur input much needed
It looks like the user account used to run the IIS application doesnt have the permission to open word application
50 replies
CC#
Created by kailash T. on 12/11/2023 in #help
is anyone using the interop library for converting doc to docx ..ur input much needed
Hi, does the application runs with administrator privileges ?
50 replies
CC#
Created by kailash T. on 12/11/2023 in #help
is anyone using the interop library for converting doc to docx ..ur input much needed
Gl !
50 replies
CC#
Created by kailash T. on 12/11/2023 in #help
is anyone using the interop library for converting doc to docx ..ur input much needed
Its only my point of view, but If i were you i'd go to the bottom of the first exception before trying this
50 replies
CC#
Created by kailash T. on 12/11/2023 in #help
is anyone using the interop library for converting doc to docx ..ur input much needed
Are you on .NET framework or .NET core btw ?
50 replies
CC#
Created by kailash T. on 12/11/2023 in #help
is anyone using the interop library for converting doc to docx ..ur input much needed
No description
50 replies
CC#
Created by kailash T. on 12/11/2023 in #help
is anyone using the interop library for converting doc to docx ..ur input much needed
i'm looking
50 replies
CC#
Created by kailash T. on 12/11/2023 in #help
is anyone using the interop library for converting doc to docx ..ur input much needed
try to capture the message exception, it is hard to tell without it
50 replies
CC#
Created by kailash T. on 12/11/2023 in #help
is anyone using the interop library for converting doc to docx ..ur input much needed
My bad
50 replies
CC#
Created by kailash T. on 12/11/2023 in #help
is anyone using the interop library for converting doc to docx ..ur input much needed
Na indeed you can't
50 replies
CC#
Created by kailash T. on 12/11/2023 in #help
is anyone using the interop library for converting doc to docx ..ur input much needed
Try to capture message also if possible
50 replies
CC#
Created by kailash T. on 12/11/2023 in #help
is anyone using the interop library for converting doc to docx ..ur input much needed
I really think something is wrong with your installation on your server
50 replies