3
13.20 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
575705
576419
605414
429069
510855
651954
466954
494510
490458
597493
461423
493225
557599
568007
682522
597070
469762
524013
508641
580913
567060
596526
598494
522387
587059
619411
613924
529130
601314
498022
662382
592005
543387
434442
482552
519991
566925
716147
649134
620712
526736
535025
515977
510695
588934
611375
599483
420262
544478
613934
598199
510481
529383
610046
526951
595507
613215
510754
601677
492169
624847
526372
556912
526435
605450
488473
]
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 (575705 , 576419 , 605414 , 429069 , 510855 , 651954 , 466954 , 494510 , 490458 , 597493 , 461423 , 493225 , 557599 , 568007 , 682522 , 597070 , 469762 , 524013 , 508641 , 580913 , 567060 , 596526 , 598494 , 522387 , 587059 , 619411 , 613924 , 529130 , 601314 , 498022 , 662382 , 592005 , 543387 , 434442 , 482552 , 519991 , 566925 , 716147 , 649134 , 620712 , 526736 , 535025 , 515977 , 510695 , 588934 , 611375 , 599483 , 420262 , 544478 , 613934 , 598199 , 510481 , 529383 , 610046 , 526951 , 595507 , 613215 , 510754 , 601677 , 492169 , 624847 , 526372 , 556912 , 526435 , 605450 , 488473 );
Copy
4
2.58 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
420262
429069
434442
461423
466954
469762
482552
488473
490458
492169
493225
494510
498022
508641
510481
510695
510754
510855
515977
519991
522387
524013
526372
526435
526736
526951
529130
529383
535025
543387
544478
556912
557599
566925
567060
568007
575705
576419
580913
587059
588934
592005
595507
596526
597070
597493
598199
598494
599483
601314
601677
605414
605450
610046
611375
613215
613924
613934
619411
620712
624847
649134
651954
662382
682522
716147
]
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 (420262 , 429069 , 434442 , 461423 , 466954 , 469762 , 482552 , 488473 , 490458 , 492169 , 493225 , 494510 , 498022 , 508641 , 510481 , 510695 , 510754 , 510855 , 515977 , 519991 , 522387 , 524013 , 526372 , 526435 , 526736 , 526951 , 529130 , 529383 , 535025 , 543387 , 544478 , 556912 , 557599 , 566925 , 567060 , 568007 , 575705 , 576419 , 580913 , 587059 , 588934 , 592005 , 595507 , 596526 , 597070 , 597493 , 598199 , 598494 , 599483 , 601314 , 601677 , 605414 , 605450 , 610046 , 611375 , 613215 , 613924 , 613934 , 619411 , 620712 , 624847 , 649134 , 651954 , 662382 , 682522 , 716147 );
Copy
5
97.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
420262
429069
434442
461423
466954
469762
482552
488473
490458
492169
493225
494510
498022
508641
510481
510695
510754
510855
515977
519991
522387
524013
526372
526435
526736
526951
529130
529383
535025
543387
544478
556912
557599
566925
567060
568007
575705
576419
580913
587059
588934
592005
595507
596526
597070
597493
598199
598494
599483
601314
601677
605414
605450
610046
611375
613215
613924
613934
619411
620712
624847
649134
651954
662382
682522
716147
]
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 (420262 , 429069 , 434442 , 461423 , 466954 , 469762 , 482552 , 488473 , 490458 , 492169 , 493225 , 494510 , 498022 , 508641 , 510481 , 510695 , 510754 , 510855 , 515977 , 519991 , 522387 , 524013 , 526372 , 526435 , 526736 , 526951 , 529130 , 529383 , 535025 , 543387 , 544478 , 556912 , 557599 , 566925 , 567060 , 568007 , 575705 , 576419 , 580913 , 587059 , 588934 , 592005 , 595507 , 596526 , 597070 , 597493 , 598199 , 598494 , 599483 , 601314 , 601677 , 605414 , 605450 , 610046 , 611375 , 613215 , 613924 , 613934 , 619411 , 620712 , 624847 , 649134 , 651954 , 662382 , 682522 , 716147 );
Copy