3
10.63 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
450822
452018
448445
507666
534842
536370
536590
537660
530060
524183
530017
481147
551222
646849
600030
420925
436032
512891
494345
485541
521852
428353
445627
532645
536248
474539
587192
630866
471380
477686
541594
497356
665328
429999
432751
437868
477210
482527
524879
530377
532680
537888
539203
540437
524628
530061
531123
650380
574200
639732
419370
406381
448839
527447
484673
492472
463842
458010
532755
530637
517743
646448
597216
469534
411581
434601
532666
530369
632563
599988
532766
499882
580270
]
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 (450822 , 452018 , 448445 , 507666 , 534842 , 536370 , 536590 , 537660 , 530060 , 524183 , 530017 , 481147 , 551222 , 646849 , 600030 , 420925 , 436032 , 512891 , 494345 , 485541 , 521852 , 428353 , 445627 , 532645 , 536248 , 474539 , 587192 , 630866 , 471380 , 477686 , 541594 , 497356 , 665328 , 429999 , 432751 , 437868 , 477210 , 482527 , 524879 , 530377 , 532680 , 537888 , 539203 , 540437 , 524628 , 530061 , 531123 , 650380 , 574200 , 639732 , 419370 , 406381 , 448839 , 527447 , 484673 , 492472 , 463842 , 458010 , 532755 , 530637 , 517743 , 646448 , 597216 , 469534 , 411581 , 434601 , 532666 , 530369 , 632563 , 599988 , 532766 , 499882 , 580270 );
Copy
4
2.02 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
406381
411581
419370
420925
428353
429999
432751
434601
436032
437868
445627
448445
448839
450822
452018
458010
463842
469534
471380
474539
477210
477686
481147
482527
484673
485541
492472
494345
497356
499882
507666
512891
517743
521852
524183
524628
524879
527447
530017
530060
530061
530369
530377
530637
531123
532645
532666
532680
532755
532766
534842
536248
536370
536590
537660
537888
539203
540437
541594
551222
574200
580270
587192
597216
599988
600030
630866
632563
639732
646448
646849
650380
665328
]
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 (406381 , 411581 , 419370 , 420925 , 428353 , 429999 , 432751 , 434601 , 436032 , 437868 , 445627 , 448445 , 448839 , 450822 , 452018 , 458010 , 463842 , 469534 , 471380 , 474539 , 477210 , 477686 , 481147 , 482527 , 484673 , 485541 , 492472 , 494345 , 497356 , 499882 , 507666 , 512891 , 517743 , 521852 , 524183 , 524628 , 524879 , 527447 , 530017 , 530060 , 530061 , 530369 , 530377 , 530637 , 531123 , 532645 , 532666 , 532680 , 532755 , 532766 , 534842 , 536248 , 536370 , 536590 , 537660 , 537888 , 539203 , 540437 , 541594 , 551222 , 574200 , 580270 , 587192 , 597216 , 599988 , 600030 , 630866 , 632563 , 639732 , 646448 , 646849 , 650380 , 665328 );
Copy
5
142.16 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
406381
411581
419370
420925
428353
429999
432751
434601
436032
437868
445627
448445
448839
450822
452018
458010
463842
469534
471380
474539
477210
477686
481147
482527
484673
485541
492472
494345
497356
499882
507666
512891
517743
521852
524183
524628
524879
527447
530017
530060
530061
530369
530377
530637
531123
532645
532666
532680
532755
532766
534842
536248
536370
536590
537660
537888
539203
540437
541594
551222
574200
580270
587192
597216
599988
600030
630866
632563
639732
646448
646849
650380
665328
]
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 (406381 , 411581 , 419370 , 420925 , 428353 , 429999 , 432751 , 434601 , 436032 , 437868 , 445627 , 448445 , 448839 , 450822 , 452018 , 458010 , 463842 , 469534 , 471380 , 474539 , 477210 , 477686 , 481147 , 482527 , 484673 , 485541 , 492472 , 494345 , 497356 , 499882 , 507666 , 512891 , 517743 , 521852 , 524183 , 524628 , 524879 , 527447 , 530017 , 530060 , 530061 , 530369 , 530377 , 530637 , 531123 , 532645 , 532666 , 532680 , 532755 , 532766 , 534842 , 536248 , 536370 , 536590 , 537660 , 537888 , 539203 , 540437 , 541594 , 551222 , 574200 , 580270 , 587192 , 597216 , 599988 , 600030 , 630866 , 632563 , 639732 , 646448 , 646849 , 650380 , 665328 );
Copy