@@ -2178,10 +2178,12 @@ Explained Query:
2178
2178
Negate // { arity: 16 }
2179
2179
Distinct project=[#0{id}..=#15{email}] // { arity: 16 }
2180
2180
Project (#0..=#15) // { arity: 16 }
2181
- Get l1 // { arity: 17 }
2182
- Distinct project=[#0{id}, #1{url}, #2{partofcontinentid}, #3{id}, #4{name}, #5{url}, #6{creationdate}, #7{id}, #8{firstname}, #9{lastname}, #10{gender}, #11{birthday}, #12{locationip}, #13{browserused}, #14{speaks}, #15{email}] // { arity: 16 }
2183
- Get l0 // { arity: 16 }
2184
- ArrangeBy keys=[[#0{id}, #1{url}, #2{partofcontinentid}, #3{id}, #4{name}, #5{url}, #6{creationdate}, #7{id}, #8{firstname}, #9{lastname}, #10{gender}, #11{birthday}, #12{locationip}, #13{browserused}, #14{speaks}, #15{email}]] // { arity: 16 }
2181
+ Filter (#0{id} = #0{id}) AND (#3{id} = #3{id}) // { arity: 17 }
2182
+ Get l1 // { arity: 17 }
2183
+ Distinct project=[#0{id}..=#15{email}] // { arity: 16 }
2184
+ Filter (#0{id} = #0{id}) AND (#3{id} = #3{id}) // { arity: 16 }
2185
+ Get l0 // { arity: 16 }
2186
+ ArrangeBy keys=[[#0{id}..=#15{email}]] // { arity: 16 }
2185
2187
Get l0 // { arity: 16 }
2186
2188
cte l1 =
2187
2189
Project (#0..=#15, #17) // { arity: 17 }
@@ -2540,44 +2542,44 @@ Explained Query:
2540
2542
ArrangeBy keys=[[greatest(#0{person1id}, #1{person2id}), least(#0{person1id}, #1{person2id})]] // { arity: 2 }
2541
2543
Get l3 // { arity: 2 }
2542
2544
ArrangeBy keys=[[#1, #0]] // { arity: 2 }
2543
- Distinct project=[#0 , #1] // { arity: 2 }
2544
- Project (#2 , #3 ) // { arity: 2 }
2545
- Get l2 // { arity: 5 }
2545
+ Distinct project=[least(#0{person1id} , #1{person2id}), greatest(#0{person1id}, #1{person2id}) ] // { arity: 2 }
2546
+ Project (#0 , #1 ) // { arity: 2 }
2547
+ Get l2 // { arity: 3 }
2546
2548
Get l3 // { arity: 2 }
2547
- Project (#0, #1, #4) // { arity: 3 }
2548
- Get l2 // { arity: 5 }
2549
+ Get l2 // { arity: 3 }
2549
2550
Constant // { arity: 2 }
2550
2551
- (1450, 0)
2551
2552
cte l3 =
2552
2553
Project (#1, #2) // { arity: 2 }
2553
2554
ReadIndex on=person_knows_person person_knows_person_person1id=[*** full scan ***] // { arity: 3 }
2554
2555
cte l2 =
2555
- Join on=(#2 = least(#0{person1id}, #1{person2id}) AND #3 = greatest(#0{person1id}, #1{person2id})) type=differential // { arity: 5 }
2556
- implementation
2557
- %1[#1, #0]UKK » %0:person_knows_person[greatest(#0, #1), least(#0, #1)]KK
2558
- ArrangeBy keys=[[greatest(#0{person1id}, #1{person2id}), least(#0{person1id}, #1{person2id})]] // { arity: 2 }
2559
- Project (#1, #2) // { arity: 2 }
2560
- ReadIndex on=person_knows_person person_knows_person_person1id=[*** full scan ***] // { arity: 3 }
2561
- ArrangeBy keys=[[#1, #0]] // { arity: 3 }
2562
- Reduce group_by=[least(#0{person1id}, #1{person2id}), greatest(#0{person1id}, #1{person2id})] aggregates=[sum(case when (#2{parentmessageid}) IS NULL then 10 else 5 end)] // { arity: 3 }
2563
- Project (#0..=#2) // { arity: 3 }
2564
- Join on=(#3{containerforumid} = #4{containerforumid} = #5{id}) type=delta // { arity: 6 }
2565
- implementation
2566
- %0:l1 » %1[#0]UKA » %2[#0]UKA
2567
- %1 » %2[#0]UKA » %0:l1[#3]KA
2568
- %2 » %1[#0]UKA » %0:l1[#3]KA
2569
- ArrangeBy keys=[[#3{containerforumid}]] // { arity: 4 }
2570
- Get l1 // { arity: 4 }
2571
- ArrangeBy keys=[[#0{containerforumid}]] // { arity: 1 }
2572
- Distinct project=[#0{containerforumid}] // { arity: 1 }
2573
- Project (#3) // { arity: 1 }
2574
- Filter (#3{containerforumid}) IS NOT NULL // { arity: 4 }
2575
- Get l1 // { arity: 4 }
2576
- ArrangeBy keys=[[#0{id}]] // { arity: 1 }
2577
- Distinct project=[#0{id}] // { arity: 1 }
2578
- Project (#1) // { arity: 1 }
2579
- Filter (#0{creationdate} <= 2012-11-10 00:00:00 UTC) AND (#0{creationdate} >= 2012-11-06 00:00:00 UTC) AND (#1{id}) IS NOT NULL // { arity: 4 }
2580
- ReadIndex on=forum forum_id=[*** full scan ***] // { arity: 4 }
2556
+ Project (#0, #1, #4) // { arity: 3 }
2557
+ Join on=(#2 = least(#0{person1id}, #1{person2id}) AND #3 = greatest(#0{person1id}, #1{person2id})) type=differential // { arity: 5 }
2558
+ implementation
2559
+ %1[#1, #0]UKK » %0:person_knows_person[greatest(#0, #1), least(#0, #1)]KK
2560
+ ArrangeBy keys=[[greatest(#0{person1id}, #1{person2id}), least(#0{person1id}, #1{person2id})]] // { arity: 2 }
2561
+ Project (#1, #2) // { arity: 2 }
2562
+ ReadIndex on=person_knows_person person_knows_person_person1id=[*** full scan ***] // { arity: 3 }
2563
+ ArrangeBy keys=[[#1, #0]] // { arity: 3 }
2564
+ Reduce group_by=[least(#0{person1id}, #1{person2id}), greatest(#0{person1id}, #1{person2id})] aggregates=[sum(case when (#2{parentmessageid}) IS NULL then 10 else 5 end)] // { arity: 3 }
2565
+ Project (#0..=#2) // { arity: 3 }
2566
+ Join on=(#3{containerforumid} = #4{containerforumid} = #5{id}) type=delta // { arity: 6 }
2567
+ implementation
2568
+ %0:l1 » %1[#0]UKA » %2[#0]UKA
2569
+ %1 » %2[#0]UKA » %0:l1[#3]KA
2570
+ %2 » %1[#0]UKA » %0:l1[#3]KA
2571
+ ArrangeBy keys=[[#3{containerforumid}]] // { arity: 4 }
2572
+ Get l1 // { arity: 4 }
2573
+ ArrangeBy keys=[[#0{containerforumid}]] // { arity: 1 }
2574
+ Distinct project=[#0{containerforumid}] // { arity: 1 }
2575
+ Project (#3) // { arity: 1 }
2576
+ Filter (#3{containerforumid}) IS NOT NULL // { arity: 4 }
2577
+ Get l1 // { arity: 4 }
2578
+ ArrangeBy keys=[[#0{id}]] // { arity: 1 }
2579
+ Distinct project=[#0{id}] // { arity: 1 }
2580
+ Project (#1) // { arity: 1 }
2581
+ Filter (#0{creationdate} <= 2012-11-10 00:00:00 UTC) AND (#0{creationdate} >= 2012-11-06 00:00:00 UTC) AND (#1{id}) IS NOT NULL // { arity: 4 }
2582
+ ReadIndex on=forum forum_id=[*** full scan ***] // { arity: 4 }
2581
2583
cte l1 =
2582
2584
Project (#0, #1, #3, #4) // { arity: 4 }
2583
2585
Join on=(#2{containerforumid} = #5{containerforumid} = #6{id}) type=delta // { arity: 7 }
@@ -2962,42 +2964,42 @@ Explained Query:
2962
2964
ArrangeBy keys=[[greatest(#0{person1id}, #1{person2id}), least(#0{person1id}, #1{person2id})]] // { arity: 2 }
2963
2965
Get l3 // { arity: 2 }
2964
2966
ArrangeBy keys=[[#1, #0]] // { arity: 2 }
2965
- Distinct project=[#0 , #1] // { arity: 2 }
2966
- Project (#2 , #3 ) // { arity: 2 }
2967
- Get l2 // { arity: 5 }
2967
+ Distinct project=[least(#0{person1id} , #1{person2id}), greatest(#0{person1id}, #1{person2id}) ] // { arity: 2 }
2968
+ Project (#0 , #1 ) // { arity: 2 }
2969
+ Get l2 // { arity: 3 }
2968
2970
Get l3 // { arity: 2 }
2969
- Project (#0, #1, #4) // { arity: 3 }
2970
- Get l2 // { arity: 5 }
2971
+ Get l2 // { arity: 3 }
2971
2972
cte l3 =
2972
2973
Project (#1, #2) // { arity: 2 }
2973
2974
ReadIndex on=person_knows_person person_knows_person_person1id=[*** full scan ***] // { arity: 3 }
2974
2975
cte l2 =
2975
- Join on=(#2 = least(#0{person1id}, #1{person2id}) AND #3 = greatest(#0{person1id}, #1{person2id})) type=differential // { arity: 5 }
2976
- implementation
2977
- %1[#1, #0]UKK » %0:person_knows_person[greatest(#0, #1), least(#0, #1)]KK
2978
- ArrangeBy keys=[[greatest(#0{person1id}, #1{person2id}), least(#0{person1id}, #1{person2id})]] // { arity: 2 }
2979
- Project (#1, #2) // { arity: 2 }
2980
- ReadIndex on=person_knows_person person_knows_person_person1id=[*** full scan ***] // { arity: 3 }
2981
- ArrangeBy keys=[[#1, #0]] // { arity: 3 }
2982
- Reduce group_by=[least(#0{person1id}, #1{person2id}), greatest(#0{person1id}, #1{person2id})] aggregates=[sum(case when (#2{parentmessageid}) IS NULL then 10 else 5 end)] // { arity: 3 }
2983
- Project (#0..=#2) // { arity: 3 }
2984
- Join on=(#3{containerforumid} = #4{containerforumid} = #5{id}) type=delta // { arity: 6 }
2985
- implementation
2986
- %0:l1 » %1[#0]UKA » %2[#0]UKA
2987
- %1 » %2[#0]UKA » %0:l1[#3]KA
2988
- %2 » %1[#0]UKA » %0:l1[#3]KA
2989
- ArrangeBy keys=[[#3{containerforumid}]] // { arity: 4 }
2990
- Get l1 // { arity: 4 }
2991
- ArrangeBy keys=[[#0{containerforumid}]] // { arity: 1 }
2992
- Distinct project=[#0{containerforumid}] // { arity: 1 }
2993
- Project (#3) // { arity: 1 }
2994
- Filter (#3{containerforumid}) IS NOT NULL // { arity: 4 }
2995
- Get l1 // { arity: 4 }
2996
- ArrangeBy keys=[[#0{id}]] // { arity: 1 }
2997
- Distinct project=[#0{id}] // { arity: 1 }
2998
- Project (#1) // { arity: 1 }
2999
- Filter (#0{creationdate} <= 2012-11-10 00:00:00 UTC) AND (#0{creationdate} >= 2012-11-06 00:00:00 UTC) AND (#1{id}) IS NOT NULL // { arity: 4 }
3000
- ReadIndex on=forum forum_id=[*** full scan ***] // { arity: 4 }
2976
+ Project (#0, #1, #4) // { arity: 3 }
2977
+ Join on=(#2 = least(#0{person1id}, #1{person2id}) AND #3 = greatest(#0{person1id}, #1{person2id})) type=differential // { arity: 5 }
2978
+ implementation
2979
+ %1[#1, #0]UKK » %0:person_knows_person[greatest(#0, #1), least(#0, #1)]KK
2980
+ ArrangeBy keys=[[greatest(#0{person1id}, #1{person2id}), least(#0{person1id}, #1{person2id})]] // { arity: 2 }
2981
+ Project (#1, #2) // { arity: 2 }
2982
+ ReadIndex on=person_knows_person person_knows_person_person1id=[*** full scan ***] // { arity: 3 }
2983
+ ArrangeBy keys=[[#1, #0]] // { arity: 3 }
2984
+ Reduce group_by=[least(#0{person1id}, #1{person2id}), greatest(#0{person1id}, #1{person2id})] aggregates=[sum(case when (#2{parentmessageid}) IS NULL then 10 else 5 end)] // { arity: 3 }
2985
+ Project (#0..=#2) // { arity: 3 }
2986
+ Join on=(#3{containerforumid} = #4{containerforumid} = #5{id}) type=delta // { arity: 6 }
2987
+ implementation
2988
+ %0:l1 » %1[#0]UKA » %2[#0]UKA
2989
+ %1 » %2[#0]UKA » %0:l1[#3]KA
2990
+ %2 » %1[#0]UKA » %0:l1[#3]KA
2991
+ ArrangeBy keys=[[#3{containerforumid}]] // { arity: 4 }
2992
+ Get l1 // { arity: 4 }
2993
+ ArrangeBy keys=[[#0{containerforumid}]] // { arity: 1 }
2994
+ Distinct project=[#0{containerforumid}] // { arity: 1 }
2995
+ Project (#3) // { arity: 1 }
2996
+ Filter (#3{containerforumid}) IS NOT NULL // { arity: 4 }
2997
+ Get l1 // { arity: 4 }
2998
+ ArrangeBy keys=[[#0{id}]] // { arity: 1 }
2999
+ Distinct project=[#0{id}] // { arity: 1 }
3000
+ Project (#1) // { arity: 1 }
3001
+ Filter (#0{creationdate} <= 2012-11-10 00:00:00 UTC) AND (#0{creationdate} >= 2012-11-06 00:00:00 UTC) AND (#1{id}) IS NOT NULL // { arity: 4 }
3002
+ ReadIndex on=forum forum_id=[*** full scan ***] // { arity: 4 }
3001
3003
cte l1 =
3002
3004
Project (#0, #1, #3, #4) // { arity: 4 }
3003
3005
Join on=(#2{containerforumid} = #5{containerforumid} = #6{id}) type=delta // { arity: 7 }
@@ -4464,22 +4466,14 @@ Explained Query:
4464
4466
cte l11 =
4465
4467
Distinct project=[#0..=#5] // { arity: 6 }
4466
4468
Union // { arity: 6 }
4467
- <<<<<<< HEAD
4468
4469
Project (#0..=#2, #4, #3, #5) // { arity: 6 }
4469
4470
Map (false, 0, 0) // { arity: 6 }
4470
4471
Distinct project=[#0..=#2{personid}] // { arity: 3 }
4471
4472
Union // { arity: 3 }
4472
4473
Project (#1, #0, #0) // { arity: 3 }
4473
- =======
4474
- Project (#0, #1, #1, #3, #2, #4) // { arity: 6 }
4475
- Map (false, 0, 0) // { arity: 5 }
4476
- Distinct project=[#0, #1{personid}] // { arity: 2 }
4477
- Union // { arity: 2 }
4478
- Project (#1, #0) // { arity: 2 }
4479
- >>>>>>> 0eca4aec38 (WIP checkin)
4480
4474
Map (10995116285979, false) // { arity: 2 }
4481
4475
Get l10 // { arity: 0 }
4482
- Project (#1, #0) // { arity: 2 }
4476
+ Project (#1, #0, #0 ) // { arity: 3 }
4483
4477
Map (true) // { arity: 2 }
4484
4478
CrossJoin type=differential // { arity: 1 }
4485
4479
implementation
0 commit comments