« first day (2586 days earlier)      last day (1732 days later) » 

4:41 AM
I am first today, I guess
hi lads
 
4:57 AM
@gotqn hello, first today.
 
 
2 hours later…
6:32 AM
Hello,
when the execution result says Scan count 1, logical reads 5, does it mean the SQL server engine had to scan 5 data pages to retrieve the result or search 5 data in some N number of pages
can anyone clarify this please
 
Hi everybody
have some doubt on implementing cascade delete. I am using yii , I want to know whether I can use cascade delete inside transaction?
Actually i need to roll back it on any error
 
7:18 AM
morning everyone
 
Morning all
mind is running at 10% so I'm going for coffee
 
8:04 AM
Hello I've build this MySQL query: SELECT p.*, u.name
FROM (
SELECT *
FROM posts
ORDER BY updated_at DESC
LIMIT $start, $perPage
) AS p
INNER JOIN users AS u ON p.user_id = u.id
ORDER BY updated_at DESC Is there a better way? Can I do smething with double order by?
 
@Shaneis hey
 
@AndyK o/
 
@Shaneis sup man?
 
Ah just recovering from Saturday and trying to get work done. Same old, same old
You?
 
@Shaneis same here. recovering from the weekend. I forgot how good it was to have a social life again
 
8:18 AM
Is it good design to have a table with a fixed number (or maximum number) of rows? For example if the table represents data from a fixed number of geographic regions (like who the mayor of each city is) wouldn't that make sense?
 
where is @hector Alvarez?
 
8:36 AM
@BlackB0ne you don't need to use order by in sub-query.
your result set will be based on Main query's Order by
morning you two. @Shaneis @AndyK
@northerner it would certainly make sense.
 
@ARr0w then how come I never see it or found instructions on how it can be done?
 
o/ @ARr0w
 
that's part of normalization.

for e.g.

table with predefined values:
roles : id, name, description, addedwhen, updatedwhen, updatedBy
users: id, roles_id, username, password, saltpassword, email, addedWhen, UpdatedWhen, UpdatedBy
UserProfile : id, roles_id, Users_id, firstName, lastName... and so on
the first table i defined will have fixed number of rows as per requirement/data.
other tables will only inherit its PK to recognize its role.
however, when it comes to huge data such as data warehouse then master table is created carrying the data of all the tables in one it enhances your select query result. (correct me if i'm wrong\ here @Shaneis)
 
9:00 AM
:shrug:
 
9:15 AM
@ARr0w hey man
 
Morning!
@gotqn Yes, you are ;)
 
9:35 AM
@ARr0w I have pagination and without group by in sub-query sorting will work for each page separately
 
@BlackB0ne
SELECT p.*, u.name
FROM (
SELECT *
FROM posts
ORDER BY updated_at DESC
LIMIT $start, $perPage
) AS p
INNER JOIN users AS u ON p.user_id = u.id

and this will return the same result

select p.*, u.name from posts as p
inner join users as u on p.user_id = u.id
Order by Updated_at desc
Limit $start, $perPage.
@AndyK \o
@Sami morning
 
@ARr0w sup bro?
 
@AndyK yawning :D
you?
 
@ARr0w warmonging with the client
 
@AndyK about requirements?
 
9:44 AM
@ARr0w worse, going live with a branch that hasn't gone live since 10 sprints ago
 
@AndyK well that's bad situation here, client must be pissed and are things ready to go live? if not damn pressure is on its way.
 
@ARr0w I told her I'm not going to do sh## about it
no go live as such
that is so insane
to even consider this
 
indeed and good that you cleared them now.
 
@ARr0w I think if I let her , she will probably say it is ok to consider suicide
 
@ARr0w Thank you for help.
 
9:57 AM
@AndyK and you could then respond to her "how about a murder?" :D
@BlackB0ne welcome.
 
@ARr0w ha ha ha
good one
 
10:39 AM
Hi guys, please i need help modelling some relationships. how would you go about this using entityframeworkcore?https://gist.github.com/FrankDupree/382fce6bba40b87e5be95256569f10dd

This is the original question on stackoverflowhttps://stackoverflow.com/questions/56584027/entity-framework-insert-conflicts-with-another-foreign-key
several entities can have the same entity in their relationship tree
in my case, multiple entities can have, video files, audio files and the likes
any pointers would be great
0
Q: Entity Framework insert conflicts with another foreign key

FrankDupreeI am having difficulty inserting data with its related entities. public class Status : Entity, IAggregateRoot { //other properties public readonly List<Video> _videos; public readonly List<Photo> _photos; } -- public class Log : Entity, IAggregateRoot { //other propertie...

 
 
4 hours later…
Jay
2:34 PM
if you turn a datetime that's null into a 0 with ISNULL will it come through as 0, or 1900-01-01 00:00:00:000?
 
Jay
2:51 PM
nm I tried it, they do show as 1900-01-01 00:00:00:000
 
 
3 hours later…
5:57 PM
Good, always try then ask why (if you face an issue)
 

« first day (2586 days earlier)      last day (1732 days later) »