4
8.96 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
778775
530314
540470
650953
629069
622638
537142
565296
535483
694038
717212
531666
537506
576566
537755
535723
550215
698467
535476
537581
601590
641641
756355
523466
533181
531662
536818
568210
714456
645992
760491
443647
543755
451698
650990
805359
214109
477522
539216
566716
550214
475737
689699
569496
812387
497558
506403
533216
548507
586948
789612
798872
490791
534047
534788
599712
598466
772327
619466
526956
434275
502422
419371
487717
533348
]
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 (778775 , 530314 , 540470 , 650953 , 629069 , 622638 , 537142 , 565296 , 535483 , 694038 , 717212 , 531666 , 537506 , 576566 , 537755 , 535723 , 550215 , 698467 , 535476 , 537581 , 601590 , 641641 , 756355 , 523466 , 533181 , 531662 , 536818 , 568210 , 714456 , 645992 , 760491 , 443647 , 543755 , 451698 , 650990 , 805359 , 214109 , 477522 , 539216 , 566716 , 550214 , 475737 , 689699 , 569496 , 812387 , 497558 , 506403 , 533216 , 548507 , 586948 , 789612 , 798872 , 490791 , 534047 , 534788 , 599712 , 598466 , 772327 , 619466 , 526956 , 434275 , 502422 , 419371 , 487717 , 533348 );
Copy
5
209.14 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
214109
419371
434275
443647
451698
475737
477522
487717
490791
497558
502422
506403
523466
526956
530314
531662
531666
533181
533216
533348
534047
534788
535476
535483
535723
536818
537142
537506
537581
537755
539216
540470
543755
548507
550214
550215
565296
566716
568210
569496
576566
586948
598466
599712
601590
619466
622638
629069
641641
645992
650953
650990
689699
694038
698467
714456
717212
756355
760491
772327
778775
789612
798872
805359
812387
]
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 (214109 , 419371 , 434275 , 443647 , 451698 , 475737 , 477522 , 487717 , 490791 , 497558 , 502422 , 506403 , 523466 , 526956 , 530314 , 531662 , 531666 , 533181 , 533216 , 533348 , 534047 , 534788 , 535476 , 535483 , 535723 , 536818 , 537142 , 537506 , 537581 , 537755 , 539216 , 540470 , 543755 , 548507 , 550214 , 550215 , 565296 , 566716 , 568210 , 569496 , 576566 , 586948 , 598466 , 599712 , 601590 , 619466 , 622638 , 629069 , 641641 , 645992 , 650953 , 650990 , 689699 , 694038 , 698467 , 714456 , 717212 , 756355 , 760491 , 772327 , 778775 , 789612 , 798872 , 805359 , 812387 );
Copy
6
100.24 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
214109
419371
434275
443647
451698
475737
477522
487717
490791
497558
502422
506403
523466
526956
530314
531662
531666
533181
533216
533348
534047
534788
535476
535483
535723
536818
537142
537506
537581
537755
539216
540470
543755
548507
550214
550215
565296
566716
568210
569496
576566
586948
598466
599712
601590
619466
622638
629069
641641
645992
650953
650990
689699
694038
698467
714456
717212
756355
760491
772327
778775
789612
798872
805359
812387
]
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 (214109 , 419371 , 434275 , 443647 , 451698 , 475737 , 477522 , 487717 , 490791 , 497558 , 502422 , 506403 , 523466 , 526956 , 530314 , 531662 , 531666 , 533181 , 533216 , 533348 , 534047 , 534788 , 535476 , 535483 , 535723 , 536818 , 537142 , 537506 , 537581 , 537755 , 539216 , 540470 , 543755 , 548507 , 550214 , 550215 , 565296 , 566716 , 568210 , 569496 , 576566 , 586948 , 598466 , 599712 , 601590 , 619466 , 622638 , 629069 , 641641 , 645992 , 650953 , 650990 , 689699 , 694038 , 698467 , 714456 , 717212 , 756355 , 760491 , 772327 , 778775 , 789612 , 798872 , 805359 , 812387 );
Copy