4
12.68 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
497212
530422
550548
768471
533292
636974
741453
602051
762473
446478
718045
642900
643791
710520
615343
607516
605198
767939
769639
457257
559383
553776
649669
716979
553775
575630
597908
629733
641203
751332
529692
532387
532385
532396
636122
629535
769405
630726
446499
537354
541171
572204
709024
639252
589605
589951
614059
459434
475695
446476
530671
599167
628758
641840
457264
446481
457267
478425
595125
700134
654683
444902
467019
444337
602519
]
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 (497212 , 530422 , 550548 , 768471 , 533292 , 636974 , 741453 , 602051 , 762473 , 446478 , 718045 , 642900 , 643791 , 710520 , 615343 , 607516 , 605198 , 767939 , 769639 , 457257 , 559383 , 553776 , 649669 , 716979 , 553775 , 575630 , 597908 , 629733 , 641203 , 751332 , 529692 , 532387 , 532385 , 532396 , 636122 , 629535 , 769405 , 630726 , 446499 , 537354 , 541171 , 572204 , 709024 , 639252 , 589605 , 589951 , 614059 , 459434 , 475695 , 446476 , 530671 , 599167 , 628758 , 641840 , 457264 , 446481 , 457267 , 478425 , 595125 , 700134 , 654683 , 444902 , 467019 , 444337 , 602519 );
Copy
5
2.87 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
444337
444902
446476
446478
446481
446499
457257
457264
457267
459434
467019
475695
478425
497212
529692
530422
530671
532385
532387
532396
533292
537354
541171
550548
553775
553776
559383
572204
575630
589605
589951
595125
597908
599167
602051
602519
605198
607516
614059
615343
628758
629535
629733
630726
636122
636974
639252
641203
641840
642900
643791
649669
654683
700134
709024
710520
716979
718045
741453
751332
762473
767939
768471
769405
769639
]
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 (444337 , 444902 , 446476 , 446478 , 446481 , 446499 , 457257 , 457264 , 457267 , 459434 , 467019 , 475695 , 478425 , 497212 , 529692 , 530422 , 530671 , 532385 , 532387 , 532396 , 533292 , 537354 , 541171 , 550548 , 553775 , 553776 , 559383 , 572204 , 575630 , 589605 , 589951 , 595125 , 597908 , 599167 , 602051 , 602519 , 605198 , 607516 , 614059 , 615343 , 628758 , 629535 , 629733 , 630726 , 636122 , 636974 , 639252 , 641203 , 641840 , 642900 , 643791 , 649669 , 654683 , 700134 , 709024 , 710520 , 716979 , 718045 , 741453 , 751332 , 762473 , 767939 , 768471 , 769405 , 769639 );
Copy
6
91.36 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
444337
444902
446476
446478
446481
446499
457257
457264
457267
459434
467019
475695
478425
497212
529692
530422
530671
532385
532387
532396
533292
537354
541171
550548
553775
553776
559383
572204
575630
589605
589951
595125
597908
599167
602051
602519
605198
607516
614059
615343
628758
629535
629733
630726
636122
636974
639252
641203
641840
642900
643791
649669
654683
700134
709024
710520
716979
718045
741453
751332
762473
767939
768471
769405
769639
]
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 (444337 , 444902 , 446476 , 446478 , 446481 , 446499 , 457257 , 457264 , 457267 , 459434 , 467019 , 475695 , 478425 , 497212 , 529692 , 530422 , 530671 , 532385 , 532387 , 532396 , 533292 , 537354 , 541171 , 550548 , 553775 , 553776 , 559383 , 572204 , 575630 , 589605 , 589951 , 595125 , 597908 , 599167 , 602051 , 602519 , 605198 , 607516 , 614059 , 615343 , 628758 , 629535 , 629733 , 630726 , 636122 , 636974 , 639252 , 641203 , 641840 , 642900 , 643791 , 649669 , 654683 , 700134 , 709024 , 710520 , 716979 , 718045 , 741453 , 751332 , 762473 , 767939 , 768471 , 769405 , 769639 );
Copy