Click here to Skip to main content
15,886,873 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Bad Joke of the Day (BJOD) Pin
OriginalGriff15-Oct-22 18:18
mveOriginalGriff15-Oct-22 18:18 
JokeI declined a job where I would be paid in vegetables. Pin
honey the codewitch15-Oct-22 11:32
mvahoney the codewitch15-Oct-22 11:32 
JokeRe: I declined a job where I would be paid in vegetables. Pin
Daniel Pfeffer15-Oct-22 11:42
professionalDaniel Pfeffer15-Oct-22 11:42 
GeneralRe: I declined a job where I would be paid in vegetables. Pin
Sander Rossel15-Oct-22 12:38
professionalSander Rossel15-Oct-22 12:38 
GeneralRe: I declined a job where I would be paid in vegetables. Pin
jmaida15-Oct-22 14:06
jmaida15-Oct-22 14:06 
GeneralRe: I declined a job where I would be paid in vegetables. Pin
PIEBALDconsult16-Oct-22 11:08
mvePIEBALDconsult16-Oct-22 11:08 
GeneralRe: I declined a job where I would be paid in vegetables. Pin
jmaida16-Oct-22 16:28
jmaida16-Oct-22 16:28 
QuestionQuestion on performance... Pin
Sander Rossel15-Oct-22 9:41
professionalSander Rossel15-Oct-22 9:41 
Not so much a programming question, but more of a what's your opinion / experience on the matter.

So, a customer of mine is importing CSV files through a website, hosted in Microsoft Azure.
The file typically has around 2000 to 2500 lines and 20 to 25 values per line (depending on the type of import).
However, something is currently very wrong in my software or database and more often than not my customer is greeted by a timeout error (well, a "something went wrong" message, because I do proper error handling Wink | ;) ).
Last week, it took 17 tries to import one file.
The funny thing is, it ultimately works every time.
Of course it wasn't always like that, but the import table in Azure SQL has over 2 million records now and I need to validate for double records, calculate a couple of other fields for which I need additional data, create some grouped data, etc.
Since I've added some stuff in the past year it's gotten slower and slower.
Not so much an issue in my development environment, but apparently a bottleneck in production.
Good thing they're calling me now that it's out of control, rather than sooner when it was more manageable Laugh | :laugh:

Anyway, I've currently got it down to four to six seconds, which is still an eternity I think.
Inserting so many records into the database, as well as fetching a good amount, just takes some time, apparently.
I'm doing everything synchronously (well, async, but waiting) and I haven't checked indexes yet, so maybe I could get it a bit faster still.
Perhaps upgrading my database in Azure could help a bit to.
If I really wanted to, I could make it instant, handle everything async, and give the user live updates.

They've got like five imports a day, so it's not like these five seconds are that big of a deal.
Other than that the system is pretty fast and they're very satisfied Big Grin | :-D

So, for my question, how long should such an action take, according to you?
Is five seconds alright and should I just show a "busy" message, or is five seconds completely unacceptable (considering the scenario)?

AnswerRe: Question on performance... Pin
David O'Neil15-Oct-22 10:32
professionalDavid O'Neil15-Oct-22 10:32 
GeneralRe: Question on performance... Pin
Sander Rossel15-Oct-22 12:42
professionalSander Rossel15-Oct-22 12:42 
GeneralRe: Question on performance... Pin
pemmons7601316-Oct-22 4:09
pemmons7601316-Oct-22 4:09 
GeneralRe: Question on performance... Pin
Sander Rossel16-Oct-22 4:57
professionalSander Rossel16-Oct-22 4:57 
GeneralRe: Question on performance... Pin
charlieg17-Oct-22 2:19
charlieg17-Oct-22 2:19 
GeneralRe: Question on performance... Pin
BryanFazekas17-Oct-22 1:18
BryanFazekas17-Oct-22 1:18 
AnswerRe: Question on performance... Pin
honey the codewitch15-Oct-22 11:34
mvahoney the codewitch15-Oct-22 11:34 
GeneralRe: Question on performance... Pin
Sander Rossel15-Oct-22 12:44
professionalSander Rossel15-Oct-22 12:44 
AnswerRe: Question on performance... Pin
Mycroft Holmes15-Oct-22 11:56
professionalMycroft Holmes15-Oct-22 11:56 
AnswerRe: Question on performance... Pin
Daniel Pfeffer15-Oct-22 15:12
professionalDaniel Pfeffer15-Oct-22 15:12 
GeneralRe: Question on performance... Pin
jmaida15-Oct-22 15:53
jmaida15-Oct-22 15:53 
GeneralRe: Question on performance... Pin
Daniel Pfeffer15-Oct-22 19:00
professionalDaniel Pfeffer15-Oct-22 19:00 
GeneralRe: Question on performance... Pin
Sander Rossel15-Oct-22 20:40
professionalSander Rossel15-Oct-22 20:40 
GeneralRe: Question on performance... Pin
Daniel Pfeffer15-Oct-22 23:07
professionalDaniel Pfeffer15-Oct-22 23:07 
GeneralRe: Question on performance... Pin
Jörgen Andersson16-Oct-22 20:48
professionalJörgen Andersson16-Oct-22 20:48 
GeneralRe: Question on performance... Pin
Matt Bond17-Oct-22 4:56
Matt Bond17-Oct-22 4:56 
AnswerRe: Question on performance... Pin
RickZeeland15-Oct-22 20:12
mveRickZeeland15-Oct-22 20:12 

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.