square.
square.
CC#
Created by square. on 6/19/2023 in #help
IIS Worker (30%) and SQL Server (60%) High CPU usage.
thank you so much for this lol, i think i found what was spiking usage. i just kept spamming f12 till i got to a piece of code that just kept generating an 8 character unique random string but the code's been running long enough with enough users that most of the strings have been used so it just started looping till it found one of the few strings that havent been accomodated yet. just increased the string length to 12 and the cpu usage went from 98% peak to 5% lmao.
11 replies
CC#
Created by square. on 6/19/2023 in #help
IIS Worker (30%) and SQL Server (60%) High CPU usage.
i don't see how select n+1 could manifest in the type of queries that are currently being run, most if not all are pk lookups and are not nested lookups, and largest result set so far is over 18 rows for a single query. Is this visible via the script found in this link https://learn.microsoft.com/en-us/troubleshoot/sql/database-engine/performance/troubleshoot-high-cpu-usage-issues ? the main query that's popping off in the diagnostic script's result set is this though, SELECT CASE WHEN EXISTS( SELECT 1 FROM dbo.Table WHERE Id = @Id ) THEN CAST(1 as bit) ELSE CAST(0 as bit) END . and i can only surmise that it's the result of an orm operation because of how the command text was written. Problem is i don't really have a query that explicitly does this, so i can't tell which endpoint exactly is firing it.
11 replies
CC#
Created by square. on 9/20/2022 in #help
Empty Array and i don't know why
but i didn't like the idea of making multiple methods that do the same thing for different types.. and thats why im using reflection
10 replies
CC#
Created by square. on 9/20/2022 in #help
Empty Array and i don't know why
oh no, they're focusing more on the basics of oop. like inheritance, polymorphism etc.
10 replies
CC#
Created by square. on 9/20/2022 in #help
Empty Array and i don't know why
can't. tis a school project and im supposed to demonstrate encapsulation
10 replies
CC#
Created by square. on 9/20/2022 in #help
Empty Array and i don't know why
where T is guaranteed to be ApplicationUser in this context
10 replies
CC#
Created by RiamuYui on 9/20/2022 in #help
Deserializing JSON from HttpClient
oh i see it now lmao
309 replies
CC#
Created by RiamuYui on 9/20/2022 in #help
Deserializing JSON from HttpClient
wait, how'd you know it was a webpage? isn't it a generic http response from an api?
309 replies
CC#
Created by RiamuYui on 9/20/2022 in #help
Deserializing JSON from HttpClient
response is already of type OSMOutputs
309 replies
CC#
Created by RiamuYui on 9/20/2022 in #help
Deserializing JSON from HttpClient
i aspire to attain the level of verbosity that this man displays when explaining code
309 replies
CC#
Created by RiamuYui on 9/20/2022 in #help
Deserializing JSON from HttpClient
iirc
309 replies
CC#
Created by RiamuYui on 9/20/2022 in #help
Deserializing JSON from HttpClient
no need to concatenate though, serializer would just drop properties not found in the model
309 replies
CC#
Created by RiamuYui on 9/20/2022 in #help
Deserializing JSON from HttpClient
ur trying to parse it into type OSMResponseModel
309 replies
CC#
Created by RiamuYui on 9/20/2022 in #help
Deserializing JSON from HttpClient
the response is of type OSMOutputs
309 replies
CC#
Created by RiamuYui on 9/20/2022 in #help
Deserializing JSON from HttpClient
for it to parse properly
309 replies
CC#
Created by RiamuYui on 9/20/2022 in #help
Deserializing JSON from HttpClient
i think you need to be returning a
{
[
{
}
]
}
{
[
{
}
]
}
309 replies
CC#
Created by RiamuYui on 9/20/2022 in #help
Deserializing JSON from HttpClient
you might be trying to parse a json array instead of a json object containing an array
309 replies
CC#
Created by RiamuYui on 9/20/2022 in #help
Deserializing JSON from HttpClient
can u share the response body?
309 replies
CC#
Created by RiamuYui on 9/20/2022 in #help
Deserializing JSON from HttpClient
maybe you have a null param?
309 replies
CC#
Created by square. on 8/18/2022 in #help
Retrieving column initialized by trigger returns null
that got it working, thanks!
3 replies