« first day (1742 days earlier)      last day (2576 days later) » 

War
8:18 AM
@Alex MVC ... might update to core at some point though
@AaronBelz can you ping the server from his computer?
 
how can i import table as model in mysql workbench?
 
9:22 AM
morning
@Exception google?
 
morning :)
 
o/
 
9:48 AM
Good evening :)
 
10:48 AM
\o
 
11:23 AM
@War I've resolved it; it was a combination of his routers rules and his anti-malware software. Thank you for your persistence and consideration.
 
11:41 AM
Hello guys! I have a small question regarding MYSQL on windows, this software really pisses me off. Why does it happen that even after typing the correct root password, the program terminates giving error 2003?
 
 
1 hour later…
12:54 PM
Morning
 
War
@AaronBelz cool
morning @Alex
 
1:13 PM
Hi War
 
\o
@MaxPayne don't know
 
:: yawn :: Good Morning!
 
Hi Bruce
 
\o/
 
Hi Andy
 
1:22 PM
Hi Alex, how's tricks?
 
It's good here. Warmer than usual winter
Doing MVC dev on a large project
 
hi guys
 
good stuff
hey @Prasanthi
 
do u have any knowledge on Power BI desktop
 
a bit
depends on what you need
 
1:32 PM
so,do u know the bullet visual
?
@AndyK
 
1:58 PM
nope can't help you on that one, Prasanthi
 
Never used Power BI
 
hmmm
k
can u help me sql related issue
?
 
2:21 PM
shoot @Prasanthi
 
i want to get some column names as single column
To display those column names as category in bullet visual
for that i wrote function
but the issue is
while i am getting column names as manually right?
while i want to add any extra column ineed to change function right
that is the problem
how can i get these from power bi
or is there any way to get it from sql
@AndyK do u have any knowledge please help me
 
3:01 PM
try to raise a mvce matey
it is bit tough right now
I'm working on several thing
 
3:43 PM
In T-SQL, is it possible to get the row count and not run the SELECT if it exceeds a limit? If you get the count, you're running the query anyway. It's an idea from a colleague but wanted to double check
 
War
@Alex SELECT count(1) FROM Table ... without the select you mean?
I'm confused
such a query only gets the count of the rows
not the rows themselves
 
That's what got me confused too.
 
War
that for example wouldn't touch the data at all, it would only look at the index and count entries in it
so should be about as fast as you can get
 
That's what this guy tells me... "we don't want to overload the server by returning too many results."
 
War
That guy clearly doesn't understand how counting rows works
oh wait
there's 1 condition there
lets say I do something like
 
3:47 PM
Well, the SELECT that would be run to fetch data is complex. Not sure why we would run a COUNT by itself
 
War
SELECT count(1) FROM Table WHERE Some condition
if the condition only uses cols that are keyed / indexed then it'll still be fast
counting non indexed rows has a cost
you can see this in profiler
profiler can actually recommend that you add indexes too
not profiler sorry ... the execution plan stuff in SSMS
of course i'm assuming microsoft SQL here
not sure if you can get equiv tools for say MySQL
but the point is ... counting rows doesn't actually return any data
so the cost is simply CPU cycles
and if the cost of that is too high you probably want to pre compute the totals (effectively de-normalise / aggregate the data)
you could do that on inserts / updates if the reporting questions are asked often enough
another way might be to do stuff like table partitioning or splitting the db over multiple files on different disks to increase it's overall load capacity
the big guys use SAN's for example and then partition the data in to sets of files for very large tables with each file living on a different SAN disk
that way the single "heavy load question" actually hits up say 5 physical disks increasing the perf
its hard to say without knowing more about the situation
 
OKay, checked with him. Here's what he'd like...
We have a sproc that returns a SELECT resultset. However, he'd like to do a check on the @@rowcount after that. If it's bigger than a set value, return a null resultset along with the rowcount
For the count, I can use an output param. For the other, I can store the SELECT into a temp table and then do a SELECT on that after the IF
 
War
4:22 PM
hmmm ... run the query twice
first time return the count, second time the data
only returning the count should be dam fast unless you're doing something horrible in the query
 
4:52 PM
@War Ahh, I see what you're saying. Do the COUNT and then check the value of that, then do the actual SELECT
I'll go that approach
 
War
yeh that gives you the option then if need be to pull say top(x) records
or you can just put a limit on the query anyway
 
Thanks, @War. Very nice approach
 
War
I tend to build api's that only ever return a page at a time, so if you want more than say 100 records you have to ask for each page in turn
 
Now for the way to return the count, probably the OUTPUT parameter is the best way to do it
Yeah, looking into that. We used a pre-built library for paging in MVC. It's probably not very efficient. Best is to only return a slice of the data for that specific page
 
War
use OData, split your back end from your front end entirely
 
5:02 PM
Hmm. Heard of it but haven't used it yet. The guy running the project might have a heart attack if we suggest that to him. "It's too new, it's too this, it's too that..." :)
 
War
well ive been using it for about 3 years
runs like a dream, we got some awesome stuff going on with it
I did have to build out a SSO server though so the user could login to the front end and then share the token from that session in to back end API calls
 
Nice :)
@War There are days I feel my back end is split from my front end :p
 
War
it was a bitch to setup but having done it, dev on that platform is really easy and simple crud stuff "just works" all I do is define a new entity (simple POCO class) and add it to both an EF model and a OData model
I can then "optionally" do custom crud rules in the middle or add other custom API functions to the API and business logic
@Alex i know what you mean lol
 
:)
 
 
1 hour later…
6:21 PM
Is it possible to have a conditional ORDER BY clause? So if a certain condition is true, there's no ORDER BY
 

« first day (1742 days earlier)      last day (2576 days later) »