3
12.00 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
584044
452860
615766
776790
802339
810377
508900
522702
722373
602614
509983
581929
470015
431702
469437
495286
547543
676426
593119
774814
796372
738485
759350
810386
499909
825824
826321
406935
580139
499568
476325
569283
661591
588017
597730
728469
710174
786876
580903
777748
518186
474989
518007
567418
601358
808625
614768
509430
521244
519796
528452
476314
529176
588414
601792
614857
574076
564496
452833
680819
547245
613576
585999
603403
518614
439079
555991
626885
579421
579611
579619
579608
449484
]
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 (584044 , 452860 , 615766 , 776790 , 802339 , 810377 , 508900 , 522702 , 722373 , 602614 , 509983 , 581929 , 470015 , 431702 , 469437 , 495286 , 547543 , 676426 , 593119 , 774814 , 796372 , 738485 , 759350 , 810386 , 499909 , 825824 , 826321 , 406935 , 580139 , 499568 , 476325 , 569283 , 661591 , 588017 , 597730 , 728469 , 710174 , 786876 , 580903 , 777748 , 518186 , 474989 , 518007 , 567418 , 601358 , 808625 , 614768 , 509430 , 521244 , 519796 , 528452 , 476314 , 529176 , 588414 , 601792 , 614857 , 574076 , 564496 , 452833 , 680819 , 547245 , 613576 , 585999 , 603403 , 518614 , 439079 , 555991 , 626885 , 579421 , 579611 , 579619 , 579608 , 449484 );
Copy
4
2.85 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
406935
431702
439079
449484
452833
452860
469437
470015
474989
476314
476325
495286
499568
499909
508900
509430
509983
518007
518186
518614
519796
521244
522702
528452
529176
547245
547543
555991
564496
567418
569283
574076
579421
579608
579611
579619
580139
580903
581929
584044
585999
588017
588414
593119
597730
601358
601792
602614
603403
613576
614768
614857
615766
626885
661591
676426
680819
710174
722373
728469
738485
759350
774814
776790
777748
786876
796372
802339
808625
810377
810386
825824
826321
]
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 (406935 , 431702 , 439079 , 449484 , 452833 , 452860 , 469437 , 470015 , 474989 , 476314 , 476325 , 495286 , 499568 , 499909 , 508900 , 509430 , 509983 , 518007 , 518186 , 518614 , 519796 , 521244 , 522702 , 528452 , 529176 , 547245 , 547543 , 555991 , 564496 , 567418 , 569283 , 574076 , 579421 , 579608 , 579611 , 579619 , 580139 , 580903 , 581929 , 584044 , 585999 , 588017 , 588414 , 593119 , 597730 , 601358 , 601792 , 602614 , 603403 , 613576 , 614768 , 614857 , 615766 , 626885 , 661591 , 676426 , 680819 , 710174 , 722373 , 728469 , 738485 , 759350 , 774814 , 776790 , 777748 , 786876 , 796372 , 802339 , 808625 , 810377 , 810386 , 825824 , 826321 );
Copy
5
87.67 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
406935
431702
439079
449484
452833
452860
469437
470015
474989
476314
476325
495286
499568
499909
508900
509430
509983
518007
518186
518614
519796
521244
522702
528452
529176
547245
547543
555991
564496
567418
569283
574076
579421
579608
579611
579619
580139
580903
581929
584044
585999
588017
588414
593119
597730
601358
601792
602614
603403
613576
614768
614857
615766
626885
661591
676426
680819
710174
722373
728469
738485
759350
774814
776790
777748
786876
796372
802339
808625
810377
810386
825824
826321
]
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 (406935 , 431702 , 439079 , 449484 , 452833 , 452860 , 469437 , 470015 , 474989 , 476314 , 476325 , 495286 , 499568 , 499909 , 508900 , 509430 , 509983 , 518007 , 518186 , 518614 , 519796 , 521244 , 522702 , 528452 , 529176 , 547245 , 547543 , 555991 , 564496 , 567418 , 569283 , 574076 , 579421 , 579608 , 579611 , 579619 , 580139 , 580903 , 581929 , 584044 , 585999 , 588017 , 588414 , 593119 , 597730 , 601358 , 601792 , 602614 , 603403 , 613576 , 614768 , 614857 , 615766 , 626885 , 661591 , 676426 , 680819 , 710174 , 722373 , 728469 , 738485 , 759350 , 774814 , 776790 , 777748 , 786876 , 796372 , 802339 , 808625 , 810377 , 810386 , 825824 , 826321 );
Copy