3
11.36 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
454215
540339
534229
531251
537199
539232
545604
615718
632707
626617
413649
501382
516584
552508
452878
505804
528969
670040
671817
602608
402202
452897
504662
442673
534021
534215
541874
542864
647960
623196
454709
631957
495217
536584
566786
650155
679774
628126
638967
524676
523357
579394
564196
584153
595376
415196
439233
545480
552608
565197
545384
582777
665107
585390
457758
498516
573212
542189
542192
630536
518511
530492
548258
471908
642700
570074
489315
536653
584492
647355
624272
473418
617420
]
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 (454215 , 540339 , 534229 , 531251 , 537199 , 539232 , 545604 , 615718 , 632707 , 626617 , 413649 , 501382 , 516584 , 552508 , 452878 , 505804 , 528969 , 670040 , 671817 , 602608 , 402202 , 452897 , 504662 , 442673 , 534021 , 534215 , 541874 , 542864 , 647960 , 623196 , 454709 , 631957 , 495217 , 536584 , 566786 , 650155 , 679774 , 628126 , 638967 , 524676 , 523357 , 579394 , 564196 , 584153 , 595376 , 415196 , 439233 , 545480 , 552608 , 565197 , 545384 , 582777 , 665107 , 585390 , 457758 , 498516 , 573212 , 542189 , 542192 , 630536 , 518511 , 530492 , 548258 , 471908 , 642700 , 570074 , 489315 , 536653 , 584492 , 647355 , 624272 , 473418 , 617420 );
Copy
4
2.57 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
402202
413649
415196
439233
442673
452878
452897
454215
454709
457758
471908
473418
489315
495217
498516
501382
504662
505804
516584
518511
523357
524676
528969
530492
531251
534021
534215
534229
536584
536653
537199
539232
540339
541874
542189
542192
542864
545384
545480
545604
548258
552508
552608
564196
565197
566786
570074
573212
579394
582777
584153
584492
585390
602608
615718
617420
623196
624272
626617
628126
630536
631957
632707
638967
642700
647355
647960
650155
665107
670040
671817
679774
]
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 (402202 , 413649 , 415196 , 439233 , 442673 , 452878 , 452897 , 454215 , 454709 , 457758 , 471908 , 473418 , 489315 , 495217 , 498516 , 501382 , 504662 , 505804 , 516584 , 518511 , 523357 , 524676 , 528969 , 530492 , 531251 , 534021 , 534215 , 534229 , 536584 , 536653 , 537199 , 539232 , 540339 , 541874 , 542189 , 542192 , 542864 , 545384 , 545480 , 545604 , 548258 , 552508 , 552608 , 564196 , 565197 , 566786 , 570074 , 573212 , 579394 , 582777 , 584153 , 584492 , 585390 , 602608 , 615718 , 617420 , 623196 , 624272 , 626617 , 628126 , 630536 , 631957 , 632707 , 638967 , 642700 , 647355 , 647960 , 650155 , 665107 , 670040 , 671817 , 679774 );
Copy
5
169.67 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
402202
413649
415196
439233
442673
452878
452897
454215
454709
457758
471908
473418
489315
495217
498516
501382
504662
505804
516584
518511
523357
524676
528969
530492
531251
534021
534215
534229
536584
536653
537199
539232
540339
541874
542189
542192
542864
545384
545480
545604
548258
552508
552608
564196
565197
566786
570074
573212
579394
582777
584153
584492
585390
602608
615718
617420
623196
624272
626617
628126
630536
631957
632707
638967
642700
647355
647960
650155
665107
670040
671817
679774
]
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 (402202 , 413649 , 415196 , 439233 , 442673 , 452878 , 452897 , 454215 , 454709 , 457758 , 471908 , 473418 , 489315 , 495217 , 498516 , 501382 , 504662 , 505804 , 516584 , 518511 , 523357 , 524676 , 528969 , 530492 , 531251 , 534021 , 534215 , 534229 , 536584 , 536653 , 537199 , 539232 , 540339 , 541874 , 542189 , 542192 , 542864 , 545384 , 545480 , 545604 , 548258 , 552508 , 552608 , 564196 , 565197 , 566786 , 570074 , 573212 , 579394 , 582777 , 584153 , 584492 , 585390 , 602608 , 615718 , 617420 , 623196 , 624272 , 626617 , 628126 , 630536 , 631957 , 632707 , 638967 , 642700 , 647355 , 647960 , 650155 , 665107 , 670040 , 671817 , 679774 );
Copy