3
8.76 ms
SELECT p . post_id , p . user_id , p . content_id , p . public_key , p . search_field , p . cover , p . type , p . sexual_orientation , p . orientation , p . quality , p . noindex , p . nofollow , p . contents_num , p . duration , p . likes , p . dislikes , p . views , p . vote_rating , p . params , p . published_at , IFNULL (`r` . `title` , `f` . `title` ) as `title` , IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` , IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2` FROM post p LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id` AND `f` . `lang_id` = ? LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id` AND `r` . `lang_id` = ? WHERE p . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
476656
448414
760659
799759
396784
596240
802898
648710
796372
500333
752603
740578
314894
451419
559412
471682
755038
529713
530679
802600
456131
616315
788463
757484
784149
683183
803040
796659
696594
740409
722388
637537
580139
416742
387937
548130
688150
752470
696597
728469
575404
489338
739134
191759
696598
427526
477374
639306
420358
542692
642969
416529
425786
777748
604109
506911
492701
495397
390447
486970
699397
429954
787506
784948
646450
432317
]
SELECT
p . post_id ,
p . user_id ,
p . content_id ,
p . public_key ,
p . search_field ,
p . cover ,
p . type ,
p . sexual_orientation ,
p . orientation ,
p . quality ,
p . noindex ,
p . nofollow ,
p . contents_num ,
p . duration ,
p . likes ,
p . dislikes ,
p . views ,
p . vote_rating ,
p . params ,
p . published_at ,
IFNULL (`r` . `title` , `f` . `title` ) as `title` ,
IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` ,
IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2`
FROM
post p
LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id`
AND `f` . `lang_id` = ?
LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id`
AND `r` . `lang_id` = ?
WHERE
p . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ?
)
Copy
SELECT p . post_id , p . user_id , p . content_id , p . public_key , p . search_field , p . cover , p . type , p . sexual_orientation , p . orientation , p . quality , p . noindex , p . nofollow , p . contents_num , p . duration , p . likes , p . dislikes , p . views , p . vote_rating , p . params , p . published_at , IFNULL (`r` . `title` , `f` . `title` ) as `title` , IFNULL (`r` . `custom1` , `f` . `custom1` ) as `custom1` , IFNULL (`r` . `custom2` , `f` . `custom2` ) as `custom2` FROM post p LEFT JOIN post_translation f ON `p` . `post_id` = `f` . `post_id` AND `f` . `lang_id` = 1 LEFT JOIN post_translation r ON `p` . `post_id` = `r` . `post_id` AND `r` . `lang_id` = 2 WHERE p . post_id IN (476656 , 448414 , 760659 , 799759 , 396784 , 596240 , 802898 , 648710 , 796372 , 500333 , 752603 , 740578 , 314894 , 451419 , 559412 , 471682 , 755038 , 529713 , 530679 , 802600 , 456131 , 616315 , 788463 , 757484 , 784149 , 683183 , 803040 , 796659 , 696594 , 740409 , 722388 , 637537 , 580139 , 416742 , 387937 , 548130 , 688150 , 752470 , 696597 , 728469 , 575404 , 489338 , 739134 , 191759 , 696598 , 427526 , 477374 , 639306 , 420358 , 542692 , 642969 , 416529 , 425786 , 777748 , 604109 , 506911 , 492701 , 495397 , 390447 , 486970 , 699397 , 429954 , 787506 , 784948 , 646450 , 432317 );
Copy
4
2.03 ms
SELECT pht . post_id , pht . tag_id , t . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_tag pht INNER JOIN tag t ON pht . tag_id = t . tag_id AND t . enabled = 1 LEFT JOIN tag_translation f ON t . tag_id = f . tag_id AND f . lang_id = ? LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id` AND `r` . `lang_id` = ? WHERE pht . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
191759
314894
387937
390447
396784
416529
416742
420358
425786
427526
429954
432317
448414
451419
456131
471682
476656
477374
486970
489338
492701
495397
500333
506911
529713
530679
542692
548130
559412
575404
580139
596240
604109
616315
637537
639306
642969
646450
648710
683183
688150
696594
696597
696598
699397
722388
728469
739134
740409
740578
752470
752603
755038
757484
760659
777748
784149
784948
787506
788463
796372
796659
799759
802600
802898
803040
]
SELECT
pht . post_id ,
pht . tag_id ,
t . slug ,
IFNULL (`r` . `name` , `f` . `name` ) as `name`
FROM
post_has_tag pht
INNER JOIN tag t ON pht . tag_id = t . tag_id
AND t . enabled = 1
LEFT JOIN tag_translation f ON t . tag_id = f . tag_id
AND f . lang_id = ?
LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id`
AND `r` . `lang_id` = ?
WHERE
pht . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ?
)
Copy
SELECT pht . post_id , pht . tag_id , t . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_tag pht INNER JOIN tag t ON pht . tag_id = t . tag_id AND t . enabled = 1 LEFT JOIN tag_translation f ON t . tag_id = f . tag_id AND f . lang_id = 1 LEFT JOIN tag_translation r ON `t` . `tag_id` = `r` . `tag_id` AND `r` . `lang_id` = 2 WHERE pht . post_id IN (191759 , 314894 , 387937 , 390447 , 396784 , 416529 , 416742 , 420358 , 425786 , 427526 , 429954 , 432317 , 448414 , 451419 , 456131 , 471682 , 476656 , 477374 , 486970 , 489338 , 492701 , 495397 , 500333 , 506911 , 529713 , 530679 , 542692 , 548130 , 559412 , 575404 , 580139 , 596240 , 604109 , 616315 , 637537 , 639306 , 642969 , 646450 , 648710 , 683183 , 688150 , 696594 , 696597 , 696598 , 699397 , 722388 , 728469 , 739134 , 740409 , 740578 , 752470 , 752603 , 755038 , 757484 , 760659 , 777748 , 784149 , 784948 , 787506 , 788463 , 796372 , 796659 , 799759 , 802600 , 802898 , 803040 );
Copy
5
81.53 ms
SELECT phc . post_id , phc . category_id , c . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_category phc INNER JOIN category c ON phc . category_id = c . category_id AND c . enabled = 1 LEFT JOIN category_translation f ON c . category_id = f . category_id AND f . lang_id = ? LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id` AND `r` . `lang_id` = ? WHERE phc . post_id IN (? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? )
Parameters :
[
1
2
191759
314894
387937
390447
396784
416529
416742
420358
425786
427526
429954
432317
448414
451419
456131
471682
476656
477374
486970
489338
492701
495397
500333
506911
529713
530679
542692
548130
559412
575404
580139
596240
604109
616315
637537
639306
642969
646450
648710
683183
688150
696594
696597
696598
699397
722388
728469
739134
740409
740578
752470
752603
755038
757484
760659
777748
784149
784948
787506
788463
796372
796659
799759
802600
802898
803040
]
SELECT
phc . post_id ,
phc . category_id ,
c . slug ,
IFNULL (`r` . `name` , `f` . `name` ) as `name`
FROM
post_has_category phc
INNER JOIN category c ON phc . category_id = c . category_id
AND c . enabled = 1
LEFT JOIN category_translation f ON c . category_id = f . category_id
AND f . lang_id = ?
LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id`
AND `r` . `lang_id` = ?
WHERE
phc . post_id IN (
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? , ? ,
? , ? , ? , ? , ?
)
Copy
SELECT phc . post_id , phc . category_id , c . slug , IFNULL (`r` . `name` , `f` . `name` ) as `name` FROM post_has_category phc INNER JOIN category c ON phc . category_id = c . category_id AND c . enabled = 1 LEFT JOIN category_translation f ON c . category_id = f . category_id AND f . lang_id = 1 LEFT JOIN category_translation r ON `c` . `category_id` = `r` . `category_id` AND `r` . `lang_id` = 2 WHERE phc . post_id IN (191759 , 314894 , 387937 , 390447 , 396784 , 416529 , 416742 , 420358 , 425786 , 427526 , 429954 , 432317 , 448414 , 451419 , 456131 , 471682 , 476656 , 477374 , 486970 , 489338 , 492701 , 495397 , 500333 , 506911 , 529713 , 530679 , 542692 , 548130 , 559412 , 575404 , 580139 , 596240 , 604109 , 616315 , 637537 , 639306 , 642969 , 646450 , 648710 , 683183 , 688150 , 696594 , 696597 , 696598 , 699397 , 722388 , 728469 , 739134 , 740409 , 740578 , 752470 , 752603 , 755038 , 757484 , 760659 , 777748 , 784149 , 784948 , 787506 , 788463 , 796372 , 796659 , 799759 , 802600 , 802898 , 803040 );
Copy