3
12.71 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
421859
451520
450766
506865
514243
516477
524612
509347
513427
523636
523833
523846
538008
582249
629762
520686
474785
549103
426766
400508
426993
455218
465335
466160
457472
535437
523841
526454
607525
462353
442933
509042
514110
514585
485273
493167
521127
454249
440548
569132
613185
421854
426987
434353
516484
454968
421882
454501
485276
523816
541215
497447
491753
609933
480742
497779
442697
609953
522035
524620
590993
521131
599353
]
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 (421859 , 451520 , 450766 , 506865 , 514243 , 516477 , 524612 , 509347 , 513427 , 523636 , 523833 , 523846 , 538008 , 582249 , 629762 , 520686 , 474785 , 549103 , 426766 , 400508 , 426993 , 455218 , 465335 , 466160 , 457472 , 535437 , 523841 , 526454 , 607525 , 462353 , 442933 , 509042 , 514110 , 514585 , 485273 , 493167 , 521127 , 454249 , 440548 , 569132 , 613185 , 421854 , 426987 , 434353 , 516484 , 454968 , 421882 , 454501 , 485276 , 523816 , 541215 , 497447 , 491753 , 609933 , 480742 , 497779 , 442697 , 609953 , 522035 , 524620 , 590993 , 521131 , 599353 );
Copy
4
2.50 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
400508
421854
421859
421882
426766
426987
426993
434353
440548
442697
442933
450766
451520
454249
454501
454968
455218
457472
462353
465335
466160
474785
480742
485273
485276
491753
493167
497447
497779
506865
509042
509347
513427
514110
514243
514585
516477
516484
520686
521127
521131
522035
523636
523816
523833
523841
523846
524612
524620
526454
535437
538008
541215
549103
569132
582249
590993
599353
607525
609933
609953
613185
629762
]
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 (400508 , 421854 , 421859 , 421882 , 426766 , 426987 , 426993 , 434353 , 440548 , 442697 , 442933 , 450766 , 451520 , 454249 , 454501 , 454968 , 455218 , 457472 , 462353 , 465335 , 466160 , 474785 , 480742 , 485273 , 485276 , 491753 , 493167 , 497447 , 497779 , 506865 , 509042 , 509347 , 513427 , 514110 , 514243 , 514585 , 516477 , 516484 , 520686 , 521127 , 521131 , 522035 , 523636 , 523816 , 523833 , 523841 , 523846 , 524612 , 524620 , 526454 , 535437 , 538008 , 541215 , 549103 , 569132 , 582249 , 590993 , 599353 , 607525 , 609933 , 609953 , 613185 , 629762 );
Copy
5
67.17 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
400508
421854
421859
421882
426766
426987
426993
434353
440548
442697
442933
450766
451520
454249
454501
454968
455218
457472
462353
465335
466160
474785
480742
485273
485276
491753
493167
497447
497779
506865
509042
509347
513427
514110
514243
514585
516477
516484
520686
521127
521131
522035
523636
523816
523833
523841
523846
524612
524620
526454
535437
538008
541215
549103
569132
582249
590993
599353
607525
609933
609953
613185
629762
]
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 (400508 , 421854 , 421859 , 421882 , 426766 , 426987 , 426993 , 434353 , 440548 , 442697 , 442933 , 450766 , 451520 , 454249 , 454501 , 454968 , 455218 , 457472 , 462353 , 465335 , 466160 , 474785 , 480742 , 485273 , 485276 , 491753 , 493167 , 497447 , 497779 , 506865 , 509042 , 509347 , 513427 , 514110 , 514243 , 514585 , 516477 , 516484 , 520686 , 521127 , 521131 , 522035 , 523636 , 523816 , 523833 , 523841 , 523846 , 524612 , 524620 , 526454 , 535437 , 538008 , 541215 , 549103 , 569132 , 582249 , 590993 , 599353 , 607525 , 609933 , 609953 , 613185 , 629762 );
Copy