3
12.46 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
786628
728900
755395
797100
746304
807570
641567
745540
562756
615266
786919
552869
693815
703212
505243
457531
714082
571979
439622
541521
678611
625372
625022
768673
761077
716620
606428
769081
563969
693816
608442
422132
559517
662206
470711
484718
604097
724678
398803
787953
492992
424985
381846
509325
631194
608407
437152
452246
466231
496863
584537
466080
512529
549643
432297
557592
476261
423375
470774
524384
562496
490061
579367
476907
515119
]
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 (786628 , 728900 , 755395 , 797100 , 746304 , 807570 , 641567 , 745540 , 562756 , 615266 , 786919 , 552869 , 693815 , 703212 , 505243 , 457531 , 714082 , 571979 , 439622 , 541521 , 678611 , 625372 , 625022 , 768673 , 761077 , 716620 , 606428 , 769081 , 563969 , 693816 , 608442 , 422132 , 559517 , 662206 , 470711 , 484718 , 604097 , 724678 , 398803 , 787953 , 492992 , 424985 , 381846 , 509325 , 631194 , 608407 , 437152 , 452246 , 466231 , 496863 , 584537 , 466080 , 512529 , 549643 , 432297 , 557592 , 476261 , 423375 , 470774 , 524384 , 562496 , 490061 , 579367 , 476907 , 515119 );
Copy
4
2.41 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
381846
398803
422132
423375
424985
432297
437152
439622
452246
457531
466080
466231
470711
470774
476261
476907
484718
490061
492992
496863
505243
509325
512529
515119
524384
541521
549643
552869
557592
559517
562496
562756
563969
571979
579367
584537
604097
606428
608407
608442
615266
625022
625372
631194
641567
662206
678611
693815
693816
703212
714082
716620
724678
728900
745540
746304
755395
761077
768673
769081
786628
786919
787953
797100
807570
]
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 (381846 , 398803 , 422132 , 423375 , 424985 , 432297 , 437152 , 439622 , 452246 , 457531 , 466080 , 466231 , 470711 , 470774 , 476261 , 476907 , 484718 , 490061 , 492992 , 496863 , 505243 , 509325 , 512529 , 515119 , 524384 , 541521 , 549643 , 552869 , 557592 , 559517 , 562496 , 562756 , 563969 , 571979 , 579367 , 584537 , 604097 , 606428 , 608407 , 608442 , 615266 , 625022 , 625372 , 631194 , 641567 , 662206 , 678611 , 693815 , 693816 , 703212 , 714082 , 716620 , 724678 , 728900 , 745540 , 746304 , 755395 , 761077 , 768673 , 769081 , 786628 , 786919 , 787953 , 797100 , 807570 );
Copy
5
100.79 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
381846
398803
422132
423375
424985
432297
437152
439622
452246
457531
466080
466231
470711
470774
476261
476907
484718
490061
492992
496863
505243
509325
512529
515119
524384
541521
549643
552869
557592
559517
562496
562756
563969
571979
579367
584537
604097
606428
608407
608442
615266
625022
625372
631194
641567
662206
678611
693815
693816
703212
714082
716620
724678
728900
745540
746304
755395
761077
768673
769081
786628
786919
787953
797100
807570
]
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 (381846 , 398803 , 422132 , 423375 , 424985 , 432297 , 437152 , 439622 , 452246 , 457531 , 466080 , 466231 , 470711 , 470774 , 476261 , 476907 , 484718 , 490061 , 492992 , 496863 , 505243 , 509325 , 512529 , 515119 , 524384 , 541521 , 549643 , 552869 , 557592 , 559517 , 562496 , 562756 , 563969 , 571979 , 579367 , 584537 , 604097 , 606428 , 608407 , 608442 , 615266 , 625022 , 625372 , 631194 , 641567 , 662206 , 678611 , 693815 , 693816 , 703212 , 714082 , 716620 , 724678 , 728900 , 745540 , 746304 , 755395 , 761077 , 768673 , 769081 , 786628 , 786919 , 787953 , 797100 , 807570 );
Copy