3
10.65 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
461410
548042
543466
552596
804840
742515
590137
382816
461818
745568
470683
481169
383694
6669
624329
798798
397985
443152
423586
707145
619770
771306
392994
490962
552589
694923
748796
707526
552593
625756
703564
268222
538006
385285
396258
516392
598645
398684
423790
565450
562343
662562
388308
573734
552595
617346
467517
478378
603218
387749
580125
553329
611028
606687
591959
621112
595871
482321
621259
623678
516254
491250
517005
508150
]
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 (461410 , 548042 , 543466 , 552596 , 804840 , 742515 , 590137 , 382816 , 461818 , 745568 , 470683 , 481169 , 383694 , 6669 , 624329 , 798798 , 397985 , 443152 , 423586 , 707145 , 619770 , 771306 , 392994 , 490962 , 552589 , 694923 , 748796 , 707526 , 552593 , 625756 , 703564 , 268222 , 538006 , 385285 , 396258 , 516392 , 598645 , 398684 , 423790 , 565450 , 562343 , 662562 , 388308 , 573734 , 552595 , 617346 , 467517 , 478378 , 603218 , 387749 , 580125 , 553329 , 611028 , 606687 , 591959 , 621112 , 595871 , 482321 , 621259 , 623678 , 516254 , 491250 , 517005 , 508150 );
Copy
4
2.24 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
6669
268222
382816
383694
385285
387749
388308
392994
396258
397985
398684
423586
423790
443152
461410
461818
467517
470683
478378
481169
482321
490962
491250
508150
516254
516392
517005
538006
543466
548042
552589
552593
552595
552596
553329
562343
565450
573734
580125
590137
591959
595871
598645
603218
606687
611028
617346
619770
621112
621259
623678
624329
625756
662562
694923
703564
707145
707526
742515
745568
748796
771306
798798
804840
]
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 (6669 , 268222 , 382816 , 383694 , 385285 , 387749 , 388308 , 392994 , 396258 , 397985 , 398684 , 423586 , 423790 , 443152 , 461410 , 461818 , 467517 , 470683 , 478378 , 481169 , 482321 , 490962 , 491250 , 508150 , 516254 , 516392 , 517005 , 538006 , 543466 , 548042 , 552589 , 552593 , 552595 , 552596 , 553329 , 562343 , 565450 , 573734 , 580125 , 590137 , 591959 , 595871 , 598645 , 603218 , 606687 , 611028 , 617346 , 619770 , 621112 , 621259 , 623678 , 624329 , 625756 , 662562 , 694923 , 703564 , 707145 , 707526 , 742515 , 745568 , 748796 , 771306 , 798798 , 804840 );
Copy
5
120.30 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
6669
268222
382816
383694
385285
387749
388308
392994
396258
397985
398684
423586
423790
443152
461410
461818
467517
470683
478378
481169
482321
490962
491250
508150
516254
516392
517005
538006
543466
548042
552589
552593
552595
552596
553329
562343
565450
573734
580125
590137
591959
595871
598645
603218
606687
611028
617346
619770
621112
621259
623678
624329
625756
662562
694923
703564
707145
707526
742515
745568
748796
771306
798798
804840
]
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 (6669 , 268222 , 382816 , 383694 , 385285 , 387749 , 388308 , 392994 , 396258 , 397985 , 398684 , 423586 , 423790 , 443152 , 461410 , 461818 , 467517 , 470683 , 478378 , 481169 , 482321 , 490962 , 491250 , 508150 , 516254 , 516392 , 517005 , 538006 , 543466 , 548042 , 552589 , 552593 , 552595 , 552596 , 553329 , 562343 , 565450 , 573734 , 580125 , 590137 , 591959 , 595871 , 598645 , 603218 , 606687 , 611028 , 617346 , 619770 , 621112 , 621259 , 623678 , 624329 , 625756 , 662562 , 694923 , 703564 , 707145 , 707526 , 742515 , 745568 , 748796 , 771306 , 798798 , 804840 );
Copy