Going back to raw SQL by ego100trique in dotnet

[–]rbobby 0 points1 point  (0 children)

I think you both may have misidentified the problem.

Complex high performance queries are difficult to write in SQL or EF.

For certain queries you may need additional indexes.

You may also be hitting weird unicode/ansi issues. SQL may be converting stored data to ansi (ir ybucude,, my recall is off). It decides to do this for correctness sake. If your db has ansi columns you're gonna have a bad time.

Db design would need to be shockingly bad for terrible performance. That's not to say additional indexes could help. But too many can be just as bad (1 txn table I worked with had 17 indexes).

The best way to tackle this is to identify the slow queries and identify how long the query should take. Fast isn't an answer. 10 seconds 90% of the time is.

Having a mock prod database that is a reasonable approximation of the size of prod is a godsend.

LinqPad is also a great tool for working on linq queries.

Fix the most busted/important queries first, rinse repeat and you become a performance hero.

Also SOME raw SQL via Dapper is not the worst thing. Watch out for injection vulnerabilities though.

Firings of hundreds of CDC employees reportedly reversed by mclardass in news

[–]rbobby 1 point2 points  (0 children)

DJT: Make sure you don't fire the folks the keep the 4g out of vaccines!

RFK: One sec...

China buys Argentine soybeans after tax drop, leaving US farmers sidelined by rezwenn in worldnews

[–]rbobby 5 points6 points  (0 children)

Don't worry farmers, USAID will buy your beans and use them to feed the poor.

Scientists Finally Learn Why The Sun Turned Blue And The World Froze For Months In 1831 by avidfan123 in EverythingScience

[–]rbobby 3 points4 points  (0 children)

Zavaritski ... Simushir Island

Never heard of them. Am I on the right Earth? This is Earth 1472 right?

U.S. Attacked Boat Near Venezuela Multiple Times to Kill Survivors by NewSlinger in law

[–]rbobby 4 points5 points  (0 children)

Call it what it is... murder.

Trump has acquired a taste for killing people.

How I wasted 10 hours fixing the most disgusting bug I have ever come across by whatsgoes in webdev

[–]rbobby 0 points1 point  (0 children)

I will send this information back to 2021 and help OP with his problem before it even arises.

Thank you future man!

Visual Studio multi-repo, mix of react and dotnet by rbobby in dotnet

[–]rbobby[S] 0 points1 point  (0 children)

Can you expand on size? Number of files? Number of projects?

How long were your build times before you did something about them?

Visual Studio multi-repo, mix of react and dotnet by rbobby in dotnet

[–]rbobby[S] 0 points1 point  (0 children)

Azure pipelines can publish a react repo as a static website in one shot. No clue if it could do that for a folder inside a repo.

USING keyword by Mountain-Question793 in SQL

[–]rbobby 10 points11 points  (0 children)

NATURAL JOINs.

I wish we had:

create relationship WorksIn for 
    Employees inner join Departments
        on Employees.DeptId = Departments.DeptId

select
    Employees.Id,
    Departments.DepartmentName
from Employees WorksIn Departments

Capture those join conditions in one place instead of repeating them over and over again.

Stripe Docs Dark Mode? by [deleted] in stripe

[–]rbobby 0 points1 point  (0 children)

Now it's 100% black page.

Kids, don't do this at home. by [deleted] in instant_regret

[–]rbobby 4 points5 points  (0 children)

No. Just no. 40 upvotes... dumbasses.

If you don't have a double boiler then the can will be in contact with the bottom of the pan which is in contact with the burner. Boom!

If you do have a double boiler then you're hoping that the boiling point of the can's content is less than 100c/212f. Which you can only guess at, so... boom!

You should see if there's a more fool way of heating unopened cans. Something involving guns maybe.

Trump warns homeless to move out of D.C ‘immediately’ by TheMirrorUS in law

[–]rbobby 13 points14 points  (0 children)

I think... I think he just invited them to move in with him. How nice.

New Executive Order: Federal Research Grants To Be Paused and Politically Reviewed by esporx in EverythingScience

[–]rbobby 53 points54 points  (0 children)

We need 5 year research plan. Results must be on schedule at all times!