kSPvhmTOlwvMd7Y7E

joined 1 year ago
[–] kSPvhmTOlwvMd7Y7E@programming.dev 3 points 1 day ago (1 children)

I don't understand why this is called a "subset", while clearly containing new syntax

A subset would be understood by older compilers, this is a superset

Absolutely not a replacement to VBA. Not even close. As usual, Microsoft hypes something everyone wants, and then implements something nobody asked

I feel offended by you somehow equalizing perl and lisp

This a much better done meme

The other one before makes zero sense

2100 parameters is a documented ODBC limitation( which applies on all statements in a batch)

This means that a

"insert into (c1, c2) values (?,?), (?,?)..." can only have 2100 bound parameters, and has nothing to do with code, and even less that surrounding code is "spaghetti"

The tables ARE normalised, the fact that there are 50 colums is because underlying market - data calibration functions expects dozens of parameters, and returns back dozens of other results, such as volatility, implied durations, forward duration and more

The amount of immaturity, inexperience, and ignorance coming from 2 people here is astounding

Blocked

[–] kSPvhmTOlwvMd7Y7E@programming.dev 1 points 1 week ago (1 children)

I timed the transaction and opening of the connection, it takes maybe a 100 milliseconds, absolutely doesn't explain ghe abysmal performance

Transaction is needed because 2 tables are touched, i don't want to deal with partially inserted data

Cannot share the code, but it's python calling .NET through "clr", and using SqlBulkCopy

What do you suggest i shouldn't be using that? It's either a prepared query, with thousands of parameters, or a plain text string with parameters inside (which admittedly, i didn't try, might be faster lol)

[–] kSPvhmTOlwvMd7Y7E@programming.dev 0 points 1 week ago* (last edited 1 week ago)

Will try bcp & report back EDIT: I can't install bcp because it is only distributed with SQLServer itself, and I cannot install it on my corporate laptop.

[–] kSPvhmTOlwvMd7Y7E@programming.dev -1 points 1 week ago* (last edited 1 week ago) (1 children)

I will try bcp. Somehow, i was convinced I had to have access to the machine running the sql server to use it, but from the doca i see i can specify a remote host.. Will report back! EDIT: I can't install bcp because it is only distributed with SQLServer itself, and I cannot install it on my corporate laptop.

[–] kSPvhmTOlwvMd7Y7E@programming.dev -2 points 1 week ago (2 children)

Please enlighten us? You barely know anything about the system or usage, and you have deduced nosql is better? Lol

I am using SqlBulkInsert, given how bad MS is with naming things, that might as well be row inserts instead of bulks

Oh buddy, enjoy your life & don't touch Microsoft even with a 10 meters stick

 

Omg it's sooo daammmn slooow it takes around 30 seconds to bulk - insert 15000 rows

Disabling indices doesn't help. Database log is at SIMPLE. My table is 50 columns wide, and from what i understand the main reason is the stupid limit of 2100 parameters in query in ODBC driver. I am using the . NET SqlBulkCopy. I only open the connection + transaction once per ~15000 inserts

I have 50 millions rows to insert, it takes literally days, please send help, i can fucking write with a pen and paper faster than damned Microsoft driver inserts rows

 

Are you doing data science? Statistics? No?

Then for god's sake don't use pandas, you just look dumb af when you pull several MB of a package just to load csv. If you find yourself doing that, just stop programming and look for another job

Thanks for attention

view more: next ›