3
11.62 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
573773
511745
748986
734256
685676
789527
817309
195329
786402
818267
702179
691851
512309
707459
815725
642413
786334
575070
665287
815522
444964
606691
557307
574496
705558
652240
606775
559712
573882
476402
511746
511743
574874
715537
527623
508872
123199
575753
573789
470176
575486
574549
575777
511747
575503
548651
630529
507877
607173
543509
523678
567384
567383
546004
502037
575150
492730
684159
684019
510349
624915
522567
574792
465010
491647
425351
663496
575128
596168
]
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 (573773 , 511745 , 748986 , 734256 , 685676 , 789527 , 817309 , 195329 , 786402 , 818267 , 702179 , 691851 , 512309 , 707459 , 815725 , 642413 , 786334 , 575070 , 665287 , 815522 , 444964 , 606691 , 557307 , 574496 , 705558 , 652240 , 606775 , 559712 , 573882 , 476402 , 511746 , 511743 , 574874 , 715537 , 527623 , 508872 , 123199 , 575753 , 573789 , 470176 , 575486 , 574549 , 575777 , 511747 , 575503 , 548651 , 630529 , 507877 , 607173 , 543509 , 523678 , 567384 , 567383 , 546004 , 502037 , 575150 , 492730 , 684159 , 684019 , 510349 , 624915 , 522567 , 574792 , 465010 , 491647 , 425351 , 663496 , 575128 , 596168 );
Copy
4
3.38 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
123199
195329
425351
444964
465010
470176
476402
491647
492730
502037
507877
508872
510349
511743
511745
511746
511747
512309
522567
523678
527623
543509
546004
548651
557307
559712
567383
567384
573773
573789
573882
574496
574549
574792
574874
575070
575128
575150
575486
575503
575753
575777
596168
606691
606775
607173
624915
630529
642413
652240
663496
665287
684019
684159
685676
691851
702179
705558
707459
715537
734256
748986
786334
786402
789527
815522
815725
817309
818267
]
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 (123199 , 195329 , 425351 , 444964 , 465010 , 470176 , 476402 , 491647 , 492730 , 502037 , 507877 , 508872 , 510349 , 511743 , 511745 , 511746 , 511747 , 512309 , 522567 , 523678 , 527623 , 543509 , 546004 , 548651 , 557307 , 559712 , 567383 , 567384 , 573773 , 573789 , 573882 , 574496 , 574549 , 574792 , 574874 , 575070 , 575128 , 575150 , 575486 , 575503 , 575753 , 575777 , 596168 , 606691 , 606775 , 607173 , 624915 , 630529 , 642413 , 652240 , 663496 , 665287 , 684019 , 684159 , 685676 , 691851 , 702179 , 705558 , 707459 , 715537 , 734256 , 748986 , 786334 , 786402 , 789527 , 815522 , 815725 , 817309 , 818267 );
Copy
5
113.71 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
123199
195329
425351
444964
465010
470176
476402
491647
492730
502037
507877
508872
510349
511743
511745
511746
511747
512309
522567
523678
527623
543509
546004
548651
557307
559712
567383
567384
573773
573789
573882
574496
574549
574792
574874
575070
575128
575150
575486
575503
575753
575777
596168
606691
606775
607173
624915
630529
642413
652240
663496
665287
684019
684159
685676
691851
702179
705558
707459
715537
734256
748986
786334
786402
789527
815522
815725
817309
818267
]
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 (123199 , 195329 , 425351 , 444964 , 465010 , 470176 , 476402 , 491647 , 492730 , 502037 , 507877 , 508872 , 510349 , 511743 , 511745 , 511746 , 511747 , 512309 , 522567 , 523678 , 527623 , 543509 , 546004 , 548651 , 557307 , 559712 , 567383 , 567384 , 573773 , 573789 , 573882 , 574496 , 574549 , 574792 , 574874 , 575070 , 575128 , 575150 , 575486 , 575503 , 575753 , 575777 , 596168 , 606691 , 606775 , 607173 , 624915 , 630529 , 642413 , 652240 , 663496 , 665287 , 684019 , 684159 , 685676 , 691851 , 702179 , 705558 , 707459 , 715537 , 734256 , 748986 , 786334 , 786402 , 789527 , 815522 , 815725 , 817309 , 818267 );
Copy