« first day (3049 days earlier)      last day (1915 days later) » 

8:01 PM
Good thing blocks don't talk.
 
How does one undo a block quote?
> This should be a block quote


This is too? How do I mark it as outside of the quote?
 
You can't.
 
blockquote is a message-level setting
 
Block level formatting applies to the entire message.
Including code blocks
SO chat markdown is pants. Get used to it.
 
Why isn't it like SO?
Mkay.
 
8:02 PM
For some reason, SO uses three different flavors of markdown in different places.
 
> pants
 
There's the post flavor, the comment flavor, and the chat flavor.
 
Michael is that a Union Jack stuffed down your trousers
 
No, I'm just happy to see you.
 
8:03 PM
I was under the impression that comment markdown was more like a subset of post markdown.
 
That's because you are a foolish fool.
@Sinjai for example, you can't strike a comment at all
In chat you can do this ---this---
In a post you can use <s>html</s>
You'll notice that doesn't work in chat
There is no way to apply such a formatting to a comment
OH and I almost forgot
The SE sites that support MathJax
 
That's funny, because stuff like &nbsp; works in comments. Or did last I checked.
7 mins ago, by Sinjai
"you would still execute and prepare the resultset for 10000 records on the db side, although you may transport only the first n rows of those to the client"

So does the DB engine pull the entire result into memory or does it retrieve one record from the file system 10000 different times?
 
National Bureau of Selling Porpoises?
 
Naked Bitches Sucking .... wait nvm
 
But enough about your mom
 
8:08 PM
Oof
Is Kendall's mom some sort of amalgamation of whores?
He(?) used a plural there, ya see.
 
well my code is working and memory is remaining constant at about 200MB
 
@erotavlas Post it so we can rip it apart.
 
no way :P
 
@erotavlas Do you have any kind of code review at work?
 
yeah...you guys :)
 
8:10 PM
Then I highly recommend posting your code here.
 
I could post it to code review stack
its better there, better formatting
 
Unless you have 100% confidence that you've written it in the optimal way, I'd ask somewhere.
 
Jesus fuck, I hate merging .sln files
 
What laptop category, programmers laptop should fall in: home, business, personal, gaming(?)?
 
@mshwf Depends on whether you need a GPU.
 
8:15 PM
I'm not a gamer, but I may want to use graphics software
 
Not that I necessarily agree with those categories.
 
@KendallFrey it's beyond comprehension they've tolerated that bullshit for so long
sorry, they've made us tolerate this bullshit for so long
 
@mshwf "Gaming" is usually just code for "has a discrete GPU".
Until you get to the $2000+ monsters covered in RGB and packing a desktop GPU.
 
@Sinjai Also most of laptops with high specs are gaming laptops (has the discrete GPU NVidea GTX 1050 ), So I think I'll go for a gaming laptop
 
isn't 1050... old?
 
8:21 PM
Yes, the high end laptops has higher GPUs,
 
@KendallFrey Q4 2016, I believe.
 
Dell G3 for example is considered a budget gaming laptop but the configs are great for programmers
 
GPU's not that big of a deal unless you want to run Crysis on ultra.
 
@Sinjai I even don't know what is this!
 
mshwf, I'd figure out what main features you want and go from there.
Touch screen, battery life, screen size, chassis size, weight, etc.
 
8:27 PM
@Sinjai is the touch screen a big deal?
 
You're asking me?
That's what you are supposed to ask yourself.
 
do you guys know how to use the profiler in VS?
 
I though you are suggesting these features.. OK.
No I don't care about touch screen , nor the battery life, the screen should be 15.6", portable one is OK but not a must
 
@mshwf I'm suggesting you consider those features.
Budget is another big one, of course.
 
@Sinjai what about this? jumia.com.eg/…
 
8:42 PM
You know you're asking a stranger on the internet about advice on an expensive purchase, right?
I happen to not be an idiot, but for all you know I could be a drooling fool.
In fact, I am, depending on who you ask.
Isn't that right, @MikeTheLiar?
 
I'm sorry, I don't speak drooling fool. Isn't there someone smarter I could talk to?
 
You never fail to make me laugh.
@mshwf I don't see anything wrong with that, as long as you're okay with Ubuntu.
 
> Gaming Laptop
> Ubuntu
um
I have some questions.
 
S/he said s/he doesn't game, just wants the GPU for... photo editing?
32 mins ago, by mshwf
I'm not a gamer, but I may want to use graphics software
 
my save query to database is taking too long, check this out
 
8:48 PM
Still, who is the target audience for such a device? Steam Machines are a thing, and they are rapidly dying.
 
Don't look at me man.
Comes down to the reseller not wanting to have to buy OS keys, I reckon.
 
@erotavlas what am I supposed to take away from this?
There's roughly a gazillion things that could be causing a bottleneck here.
Including transferring your data through a literal bottleneck.
 
@erotavlas What makes you say that's "too long"?
 
It's the girth that's the problem, really.
 
it runs really slow when I try processing thousands of records
when I was doing it in memory it was fast
 
8:51 PM
you don't say
 
Taking a long time to do a lot of work is... expected
 
lol, yeah I can think of one improvement, I don't; have to return the id for each record
 
taking notes Writing something to disk takes longer than keeping it in memory
2
 
@MikeTheLiar what is the problem with that device, if I may ask?
 
Ubuntu
 
8:52 PM
@mshwf nothing other than the fact that it's an Ubuntu machine marketed as a gaming laptop
 
@erotavlas don't open, dapper does that
 
The Venn Diagram of heavy gamers and Ubuntu users requires calculus to measure the overlap.
 
what are these "heavy gamers"
 
@misha130 don't open?
 
.Open()
 
8:53 PM
@misha130 'Bout 300 pounds.
 
I don't have to do cnn.Open()?
 
but its a side note and not your issue, but you might used up all your connections
you don't
 
Even worse you might miss one.
 
can I batch the items (insert them in batches) instead of individually?
 
Yes.
 
8:54 PM
yes just pass an ienumerable
 
that might improve things
 
@MikeTheLiar that's really funny, it's like a laptop which doesn't have a discrete GPU, but is sold as a gaming laptop that has a slot for a gaming GPU
 
You haven't really explained what the problem is other than "it takes too long"
 
I got ta MX150 which was sold as a gaming laptop and it can barely run solitare
 
Without knowing a lot more information about your network, hardware, and database schema it could be almost literally anything.
 
8:56 PM
> I want to save a million records, but the operation can't last longer than 50ms.
 
exactly, 50ms
@MikeTheLiar well I just ran my program through the profiler in VS, and it flagged that area of the code. I assumed that's where it was spending most of the time so wanted to reduce the amount of time spent on that query
 
Well of course saving something to the database is going to take longer than not doing that.
 
true, but if I want to process millions of records without out of memory exception its the only way really
I think if I ran this on an SSD it would be ok
 
It's a trade off but I digress. The point is still that in this statement we have no way of knowing what's causing a slowdown, if there even is a slowdown to be addressed.
 
i have to do some more testing to find out
 
9:04 PM
I'd start with profiling just the SQL statement
Directly on the database.
Is this running in parallel?
 
no
 
I.e., do you have a lot of different processes attempting to do this save operation at the same time?
 
its sequential, one object at a time
 
I don't think that really answers the question.
 
:(
 
9:06 PM
It answers a question which is still valuable.
 
no, I don't call save from different areas of the app, or from different apps
 
25
Q: How can I tell WHY an insert on a certain table is slow?

BradCI know that an INSERT on a SQL table can be slow for any number of reasons: Existence of INSERT TRIGGERs on the table Lots of enforced constraints that have to be checked (usually foreign keys) Page splits in the clustered index when a row is inserted in the middle of the table Updating all the...

This is SQL Server specific but there's some general advice in there, as well.
Did you say this was dapper or am I conflating two different issues?
 
Dapper to SQLite
 
to a local sqlite file?
 
yes
 
9:10 PM
73
A: SQLite Insert very slow?

tidwallWrap BEGIN \ END statements around your bulk inserts. Sqlite is optimized for transactions. dbcon = new SQLiteConnection(connectionString); dbcon.Open(); SQLiteCommand sqlComm; sqlComm = new SQLiteCommand("begin", dbcon); sqlComm.ExecuteNonQuery(); //---INSIDE LOOP sqlComm = new SQLiteComma...

 
lol
 
This sounds like a good place to start.
 
hmmm thanks for that link
 
Yeah, I'd split it into batches if you aren't currently.
 
Try explicitly opening a transaction before doing all your inserts and commit it at the end
 
9:12 PM
honestly wonder why the original driver doesnt do this when batch insert
 
different semantics
if you gather them all in a transaction, if one fails, they all get rolled back
if you don't have a transaction, if one fails, the others keep going
 
I mean what
 
10
Q: Improve performance of SQLite bulk inserts using Dapper ORM

BrokeMyLegBikingI am working on a desktop application which uses SQLite to bulk insert tens of thousands of rows into a SQLite database. I would like help optimizing the bulk insert performance. It currently takes up to 50 seconds to insert 60 megs worth of data into the database. what connection string param...

@Grace thats the idea
 
behold the power of google
 
amazing
 
9:28 PM
google needs a search with a layer of people behind it interacting with the user, prompting for more info, filtering results behind the scenes and overall making their day more pleasant
 
Hey.
 
@erotavlas Go found "NiceGoogle".
 
9:43 PM
Good stuff.
 
10:29 PM
Anyone know of a clean way to create a nightly export of Active Directory users as a CSV with particular information?
A lot of articles just show one off implementations, which is not ideal for my needs.
 
10:47 PM
Doesn't AD itself have features like that?
 
@Greg I'm assuming you've already Googled "active directory export user list to csv". Define a one off implementation?
 

« first day (3049 days earlier)      last day (1915 days later) »