3
14.55 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
695127
588265
97377
675008
624270
628333
633435
716073
623205
491270
508156
282010
534842
524183
646849
432243
457163
532984
637074
473920
473831
553269
452018
537660
530060
628117
523568
419370
406322
434000
536752
537659
645993
599726
434001
481147
614056
406381
459830
530912
532645
532680
425490
484673
448445
536590
530017
629961
381752
436032
428353
532755
482527
530377
530061
639732
527273
469534
531123
518438
463842
517743
646448
597216
599988
530637
532666
530369
632563
478672
499852
405921
600030
]
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 (695127 , 588265 , 97377 , 675008 , 624270 , 628333 , 633435 , 716073 , 623205 , 491270 , 508156 , 282010 , 534842 , 524183 , 646849 , 432243 , 457163 , 532984 , 637074 , 473920 , 473831 , 553269 , 452018 , 537660 , 530060 , 628117 , 523568 , 419370 , 406322 , 434000 , 536752 , 537659 , 645993 , 599726 , 434001 , 481147 , 614056 , 406381 , 459830 , 530912 , 532645 , 532680 , 425490 , 484673 , 448445 , 536590 , 530017 , 629961 , 381752 , 436032 , 428353 , 532755 , 482527 , 530377 , 530061 , 639732 , 527273 , 469534 , 531123 , 518438 , 463842 , 517743 , 646448 , 597216 , 599988 , 530637 , 532666 , 530369 , 632563 , 478672 , 499852 , 405921 , 600030 );
Copy
4
2.30 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
97377
282010
381752
405921
406322
406381
419370
425490
428353
432243
434000
434001
436032
448445
452018
457163
459830
463842
469534
473831
473920
478672
481147
482527
484673
491270
499852
508156
517743
518438
523568
524183
527273
530017
530060
530061
530369
530377
530637
530912
531123
532645
532666
532680
532755
532984
534842
536590
536752
537659
537660
553269
588265
597216
599726
599988
600030
614056
623205
624270
628117
628333
629961
632563
633435
637074
639732
645993
646448
646849
675008
695127
716073
]
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 (97377 , 282010 , 381752 , 405921 , 406322 , 406381 , 419370 , 425490 , 428353 , 432243 , 434000 , 434001 , 436032 , 448445 , 452018 , 457163 , 459830 , 463842 , 469534 , 473831 , 473920 , 478672 , 481147 , 482527 , 484673 , 491270 , 499852 , 508156 , 517743 , 518438 , 523568 , 524183 , 527273 , 530017 , 530060 , 530061 , 530369 , 530377 , 530637 , 530912 , 531123 , 532645 , 532666 , 532680 , 532755 , 532984 , 534842 , 536590 , 536752 , 537659 , 537660 , 553269 , 588265 , 597216 , 599726 , 599988 , 600030 , 614056 , 623205 , 624270 , 628117 , 628333 , 629961 , 632563 , 633435 , 637074 , 639732 , 645993 , 646448 , 646849 , 675008 , 695127 , 716073 );
Copy
5
99.81 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
97377
282010
381752
405921
406322
406381
419370
425490
428353
432243
434000
434001
436032
448445
452018
457163
459830
463842
469534
473831
473920
478672
481147
482527
484673
491270
499852
508156
517743
518438
523568
524183
527273
530017
530060
530061
530369
530377
530637
530912
531123
532645
532666
532680
532755
532984
534842
536590
536752
537659
537660
553269
588265
597216
599726
599988
600030
614056
623205
624270
628117
628333
629961
632563
633435
637074
639732
645993
646448
646849
675008
695127
716073
]
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 (97377 , 282010 , 381752 , 405921 , 406322 , 406381 , 419370 , 425490 , 428353 , 432243 , 434000 , 434001 , 436032 , 448445 , 452018 , 457163 , 459830 , 463842 , 469534 , 473831 , 473920 , 478672 , 481147 , 482527 , 484673 , 491270 , 499852 , 508156 , 517743 , 518438 , 523568 , 524183 , 527273 , 530017 , 530060 , 530061 , 530369 , 530377 , 530637 , 530912 , 531123 , 532645 , 532666 , 532680 , 532755 , 532984 , 534842 , 536590 , 536752 , 537659 , 537660 , 553269 , 588265 , 597216 , 599726 , 599988 , 600030 , 614056 , 623205 , 624270 , 628117 , 628333 , 629961 , 632563 , 633435 , 637074 , 639732 , 645993 , 646448 , 646849 , 675008 , 695127 , 716073 );
Copy