3
12.85 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
735624
471363
503920
454206
475914
510577
544305
545795
565977
549135
550630
643041
620163
794804
602946
621091
443836
430303
484973
465058
465498
501477
566075
549300
716765
558994
606540
621648
759691
433672
465381
510581
485147
457735
502274
516651
500600
550764
549362
557499
572537
475918
460751
464303
510758
541635
541833
382549
480752
525484
576678
591689
749924
545785
570168
585961
602647
628175
634212
478978
469017
501226
491209
413475
564923
807191
534934
656499
729223
427981
491208
457775
586601
583819
522911
]
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 (735624 , 471363 , 503920 , 454206 , 475914 , 510577 , 544305 , 545795 , 565977 , 549135 , 550630 , 643041 , 620163 , 794804 , 602946 , 621091 , 443836 , 430303 , 484973 , 465058 , 465498 , 501477 , 566075 , 549300 , 716765 , 558994 , 606540 , 621648 , 759691 , 433672 , 465381 , 510581 , 485147 , 457735 , 502274 , 516651 , 500600 , 550764 , 549362 , 557499 , 572537 , 475918 , 460751 , 464303 , 510758 , 541635 , 541833 , 382549 , 480752 , 525484 , 576678 , 591689 , 749924 , 545785 , 570168 , 585961 , 602647 , 628175 , 634212 , 478978 , 469017 , 501226 , 491209 , 413475 , 564923 , 807191 , 534934 , 656499 , 729223 , 427981 , 491208 , 457775 , 586601 , 583819 , 522911 );
Copy
4
2.42 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
382549
413475
427981
430303
433672
443836
454206
457735
457775
460751
464303
465058
465381
465498
469017
471363
475914
475918
478978
480752
484973
485147
491208
491209
500600
501226
501477
502274
503920
510577
510581
510758
516651
522911
525484
534934
541635
541833
544305
545785
545795
549135
549300
549362
550630
550764
557499
558994
564923
565977
566075
570168
572537
576678
583819
585961
586601
591689
602647
602946
606540
620163
621091
621648
628175
634212
643041
656499
716765
729223
735624
749924
759691
794804
807191
]
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 (382549 , 413475 , 427981 , 430303 , 433672 , 443836 , 454206 , 457735 , 457775 , 460751 , 464303 , 465058 , 465381 , 465498 , 469017 , 471363 , 475914 , 475918 , 478978 , 480752 , 484973 , 485147 , 491208 , 491209 , 500600 , 501226 , 501477 , 502274 , 503920 , 510577 , 510581 , 510758 , 516651 , 522911 , 525484 , 534934 , 541635 , 541833 , 544305 , 545785 , 545795 , 549135 , 549300 , 549362 , 550630 , 550764 , 557499 , 558994 , 564923 , 565977 , 566075 , 570168 , 572537 , 576678 , 583819 , 585961 , 586601 , 591689 , 602647 , 602946 , 606540 , 620163 , 621091 , 621648 , 628175 , 634212 , 643041 , 656499 , 716765 , 729223 , 735624 , 749924 , 759691 , 794804 , 807191 );
Copy
5
86.23 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
382549
413475
427981
430303
433672
443836
454206
457735
457775
460751
464303
465058
465381
465498
469017
471363
475914
475918
478978
480752
484973
485147
491208
491209
500600
501226
501477
502274
503920
510577
510581
510758
516651
522911
525484
534934
541635
541833
544305
545785
545795
549135
549300
549362
550630
550764
557499
558994
564923
565977
566075
570168
572537
576678
583819
585961
586601
591689
602647
602946
606540
620163
621091
621648
628175
634212
643041
656499
716765
729223
735624
749924
759691
794804
807191
]
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 (382549 , 413475 , 427981 , 430303 , 433672 , 443836 , 454206 , 457735 , 457775 , 460751 , 464303 , 465058 , 465381 , 465498 , 469017 , 471363 , 475914 , 475918 , 478978 , 480752 , 484973 , 485147 , 491208 , 491209 , 500600 , 501226 , 501477 , 502274 , 503920 , 510577 , 510581 , 510758 , 516651 , 522911 , 525484 , 534934 , 541635 , 541833 , 544305 , 545785 , 545795 , 549135 , 549300 , 549362 , 550630 , 550764 , 557499 , 558994 , 564923 , 565977 , 566075 , 570168 , 572537 , 576678 , 583819 , 585961 , 586601 , 591689 , 602647 , 602946 , 606540 , 620163 , 621091 , 621648 , 628175 , 634212 , 643041 , 656499 , 716765 , 729223 , 735624 , 749924 , 759691 , 794804 , 807191 );
Copy