3
12.55 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
467118
625770
473434
451966
526189
517989
567731
544011
678716
663483
472413
485927
443635
466007
530110
530836
444917
521367
452086
525501
805638
465431
451248
523861
517722
617116
487946
461048
526213
517822
571828
666095
556771
484316
444916
452195
522616
411227
535464
455436
452284
477465
411189
623641
425834
498352
643370
509988
455685
496802
603612
514576
569132
452363
520911
571734
520413
506269
482808
518131
658433
607413
539354
518012
455912
526587
]
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 (467118 , 625770 , 473434 , 451966 , 526189 , 517989 , 567731 , 544011 , 678716 , 663483 , 472413 , 485927 , 443635 , 466007 , 530110 , 530836 , 444917 , 521367 , 452086 , 525501 , 805638 , 465431 , 451248 , 523861 , 517722 , 617116 , 487946 , 461048 , 526213 , 517822 , 571828 , 666095 , 556771 , 484316 , 444916 , 452195 , 522616 , 411227 , 535464 , 455436 , 452284 , 477465 , 411189 , 623641 , 425834 , 498352 , 643370 , 509988 , 455685 , 496802 , 603612 , 514576 , 569132 , 452363 , 520911 , 571734 , 520413 , 506269 , 482808 , 518131 , 658433 , 607413 , 539354 , 518012 , 455912 , 526587 );
Copy
4
2.78 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
411189
411227
425834
443635
444916
444917
451248
451966
452086
452195
452284
452363
455436
455685
455912
461048
465431
466007
467118
472413
473434
477465
482808
484316
485927
487946
496802
498352
506269
509988
514576
517722
517822
517989
518012
518131
520413
520911
521367
522616
523861
525501
526189
526213
526587
530110
530836
535464
539354
544011
556771
567731
569132
571734
571828
603612
607413
617116
623641
625770
643370
658433
663483
666095
678716
805638
]
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 (411189 , 411227 , 425834 , 443635 , 444916 , 444917 , 451248 , 451966 , 452086 , 452195 , 452284 , 452363 , 455436 , 455685 , 455912 , 461048 , 465431 , 466007 , 467118 , 472413 , 473434 , 477465 , 482808 , 484316 , 485927 , 487946 , 496802 , 498352 , 506269 , 509988 , 514576 , 517722 , 517822 , 517989 , 518012 , 518131 , 520413 , 520911 , 521367 , 522616 , 523861 , 525501 , 526189 , 526213 , 526587 , 530110 , 530836 , 535464 , 539354 , 544011 , 556771 , 567731 , 569132 , 571734 , 571828 , 603612 , 607413 , 617116 , 623641 , 625770 , 643370 , 658433 , 663483 , 666095 , 678716 , 805638 );
Copy
5
66.11 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
411189
411227
425834
443635
444916
444917
451248
451966
452086
452195
452284
452363
455436
455685
455912
461048
465431
466007
467118
472413
473434
477465
482808
484316
485927
487946
496802
498352
506269
509988
514576
517722
517822
517989
518012
518131
520413
520911
521367
522616
523861
525501
526189
526213
526587
530110
530836
535464
539354
544011
556771
567731
569132
571734
571828
603612
607413
617116
623641
625770
643370
658433
663483
666095
678716
805638
]
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 (411189 , 411227 , 425834 , 443635 , 444916 , 444917 , 451248 , 451966 , 452086 , 452195 , 452284 , 452363 , 455436 , 455685 , 455912 , 461048 , 465431 , 466007 , 467118 , 472413 , 473434 , 477465 , 482808 , 484316 , 485927 , 487946 , 496802 , 498352 , 506269 , 509988 , 514576 , 517722 , 517822 , 517989 , 518012 , 518131 , 520413 , 520911 , 521367 , 522616 , 523861 , 525501 , 526189 , 526213 , 526587 , 530110 , 530836 , 535464 , 539354 , 544011 , 556771 , 567731 , 569132 , 571734 , 571828 , 603612 , 607413 , 617116 , 623641 , 625770 , 643370 , 658433 , 663483 , 666095 , 678716 , 805638 );
Copy