Click here to Skip to main content
15,894,343 members
Home / Discussions / C#
   

C#

 
GeneralRe: Controlled replay of recorded data Pin
Mycroft Holmes7-Jun-21 12:18
professionalMycroft Holmes7-Jun-21 12:18 
AnswerRe: Controlled replay of recorded data Pin
BillWoodruff7-Jun-21 11:53
professionalBillWoodruff7-Jun-21 11:53 
GeneralRe: Controlled replay of recorded data Pin
Chuck8448-Jun-21 3:36
Chuck8448-Jun-21 3:36 
Questionc# windows application Working with Microsoft Office Word Pin
Zeyad Jalil6-Jun-21 2:10
professionalZeyad Jalil6-Jun-21 2:10 
AnswerRe: c# windows application Working with Microsoft Office Word Pin
OriginalGriff6-Jun-21 2:20
mveOriginalGriff6-Jun-21 2:20 
AnswerRe: c# windows application Working with Microsoft Office Word Pin
Dave Kreskowiak6-Jun-21 5:44
mveDave Kreskowiak6-Jun-21 5:44 
AnswerRe: c# windows application Working with Microsoft Office Word Pin
Mycroft Holmes6-Jun-21 14:07
professionalMycroft Holmes6-Jun-21 14:07 
AnswerRe: c# windows application Working with Microsoft Office Word Pin
pkfox6-Jun-21 22:46
professionalpkfox6-Jun-21 22:46 
QuestionHow do you write a query for comparing SQL Server CE data? Pin
Alex Dunlop4-Jun-21 6:52
Alex Dunlop4-Jun-21 6:52 
AnswerRe: How do you write a query for comparing SQL Server CE data? Pin
Gerry Schmitz4-Jun-21 7:12
mveGerry Schmitz4-Jun-21 7:12 
GeneralRe: How do you write a query for comparing SQL Server CE data? Pin
Alex Dunlop4-Jun-21 7:25
Alex Dunlop4-Jun-21 7:25 
GeneralRe: How do you write a query for comparing SQL Server CE data? Pin
Gerry Schmitz4-Jun-21 8:10
mveGerry Schmitz4-Jun-21 8:10 
AnswerRe: How do you write a query for comparing SQL Server CE data? Pin
RedDk4-Jun-21 7:28
RedDk4-Jun-21 7:28 
GeneralRe: How do you write a query for comparing SQL Server CE data? Pin
Alex Dunlop4-Jun-21 7:36
Alex Dunlop4-Jun-21 7:36 
AnswerRe: How do you write a query for comparing SQL Server CE data? Pin
Alex Dunlop4-Jun-21 20:37
Alex Dunlop4-Jun-21 20:37 
GeneralRe: How do you write a query for comparing SQL Server CE data? Pin
Dave Kreskowiak5-Jun-21 4:42
mveDave Kreskowiak5-Jun-21 4:42 
GeneralRe: How do you write a query for comparing SQL Server CE data? Pin
Gerry Schmitz5-Jun-21 8:33
mveGerry Schmitz5-Jun-21 8:33 
QuestionWhat is the best way for saving huge amount of data into SQL CE file while keeping data uniqueness? Pin
Alex Dunlop2-Jun-21 6:58
Alex Dunlop2-Jun-21 6:58 
AnswerRe: What is the best way for saving huge amount of data into SQL CE file while keeping data uniqueness? Pin
Dave Kreskowiak2-Jun-21 7:08
mveDave Kreskowiak2-Jun-21 7:08 
GeneralRe: What is the best way for saving huge amount of data into SQL CE file while keeping data uniqueness? Pin
Alex Dunlop2-Jun-21 7:13
Alex Dunlop2-Jun-21 7:13 
GeneralRe: What is the best way for saving huge amount of data into SQL CE file while keeping data uniqueness? Pin
Victor Nijegorodov2-Jun-21 7:48
Victor Nijegorodov2-Jun-21 7:48 
GeneralRe: What is the best way for saving huge amount of data into SQL CE file while keeping data uniqueness? Pin
Dave Kreskowiak2-Jun-21 7:50
mveDave Kreskowiak2-Jun-21 7:50 
GeneralRe: What is the best way for saving huge amount of data into SQL CE file while keeping data uniqueness? Pin
Gerry Schmitz2-Jun-21 8:07
mveGerry Schmitz2-Jun-21 8:07 
AnswerRe: What is the best way for saving huge amount of data into SQL CE file while keeping data uniqueness? Pin
Alex Dunlop2-Jun-21 7:12
Alex Dunlop2-Jun-21 7:12 
GeneralRe: What is the best way for saving huge amount of data into SQL CE file while keeping data uniqueness? Pin
Dave Kreskowiak2-Jun-21 7:22
mveDave Kreskowiak2-Jun-21 7:22 
And this is why I said do it in a stored procedure in the database.

For every record you want to insert, why on earth would you read all of the existing data? Yes, this get's slower and slower every time you insert a record. All that data transfer will take more and more time.

It sounds like you're not even caching the data you read and insert! If you're going to do something like this, you would normally just read the database once, keep all that data, then add new records to the cache and have the cache update the database.

This has a downside though. You really cannot use it in a multi-user environment, and there is a limit to the amount of data you can keep in memory, so it doesn't scale well at all.

Doing it in the database removes reading all that data over and over again, and removes the memory size limits.

DO IT IN THE DATABASE WITH A STORED PROCEDURE!

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.