nc-net | Tiny TCP/UDP/HTTP library for C | TCP library
kandi X-RAY | nc-net Summary
kandi X-RAY | nc-net Summary
Tiny TCP/UDP/HTTP library for C++
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of nc-net
nc-net Key Features
nc-net Examples and Code Snippets
Community Discussions
Trending Discussions on nc-net
QUESTION
I have a background task (started by IHostedService
) that runs every 7 days, this task copies data into the same table only changing the PKs to generate dummy data (it's used for demos).
The issue is when it tries to save the new data for the second table (approx 2k new records) Entity Framework never completes the SaveChangesAsync
this process is blocked and it starts consuming the whole RAM available.
Note: The first table sometimes copies more than 20k new records.
This is my current code, I'm using Entity Framework Core 5.0.4 with .NET Core 3.1:
...ANSWER
Answered 2021-Mar-29 at 20:08Ideally your query do not need transferring data to the client just INSERT FROM. I propose to use third party extension linq2db.EntityFrameworkCore (disclaimer, I'm one of the creators)
Then your query will be executed on the server side almost immediately:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nc-net
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page