3
8.91 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
478325
619324
806711
600637
376482
643559
808179
642517
806727
428938
514197
567287
647000
721602
778323
797740
478629
531290
580413
600638
622505
776995
792858
769576
602107
478419
459226
465146
550499
569813
639075
775448
806708
759428
462073
505101
586092
621918
783555
478580
478602
577653
653589
656561
762544
716192
464231
466571
458588
478416
716343
791236
725696
467600
504933
478326
586233
478304
516590
526316
477445
562180
600787
594908
455885
420493
420139
465688
]
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 (478325 , 619324 , 806711 , 600637 , 376482 , 643559 , 808179 , 642517 , 806727 , 428938 , 514197 , 567287 , 647000 , 721602 , 778323 , 797740 , 478629 , 531290 , 580413 , 600638 , 622505 , 776995 , 792858 , 769576 , 602107 , 478419 , 459226 , 465146 , 550499 , 569813 , 639075 , 775448 , 806708 , 759428 , 462073 , 505101 , 586092 , 621918 , 783555 , 478580 , 478602 , 577653 , 653589 , 656561 , 762544 , 716192 , 464231 , 466571 , 458588 , 478416 , 716343 , 791236 , 725696 , 467600 , 504933 , 478326 , 586233 , 478304 , 516590 , 526316 , 477445 , 562180 , 600787 , 594908 , 455885 , 420493 , 420139 , 465688 );
Copy
4
2.46 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
376482
420139
420493
428938
455885
458588
459226
462073
464231
465146
465688
466571
467600
477445
478304
478325
478326
478416
478419
478580
478602
478629
504933
505101
514197
516590
526316
531290
550499
562180
567287
569813
577653
580413
586092
586233
594908
600637
600638
600787
602107
619324
621918
622505
639075
642517
643559
647000
653589
656561
716192
716343
721602
725696
759428
762544
769576
775448
776995
778323
783555
791236
792858
797740
806708
806711
806727
808179
]
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 (376482 , 420139 , 420493 , 428938 , 455885 , 458588 , 459226 , 462073 , 464231 , 465146 , 465688 , 466571 , 467600 , 477445 , 478304 , 478325 , 478326 , 478416 , 478419 , 478580 , 478602 , 478629 , 504933 , 505101 , 514197 , 516590 , 526316 , 531290 , 550499 , 562180 , 567287 , 569813 , 577653 , 580413 , 586092 , 586233 , 594908 , 600637 , 600638 , 600787 , 602107 , 619324 , 621918 , 622505 , 639075 , 642517 , 643559 , 647000 , 653589 , 656561 , 716192 , 716343 , 721602 , 725696 , 759428 , 762544 , 769576 , 775448 , 776995 , 778323 , 783555 , 791236 , 792858 , 797740 , 806708 , 806711 , 806727 , 808179 );
Copy
5
91.47 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
376482
420139
420493
428938
455885
458588
459226
462073
464231
465146
465688
466571
467600
477445
478304
478325
478326
478416
478419
478580
478602
478629
504933
505101
514197
516590
526316
531290
550499
562180
567287
569813
577653
580413
586092
586233
594908
600637
600638
600787
602107
619324
621918
622505
639075
642517
643559
647000
653589
656561
716192
716343
721602
725696
759428
762544
769576
775448
776995
778323
783555
791236
792858
797740
806708
806711
806727
808179
]
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 (376482 , 420139 , 420493 , 428938 , 455885 , 458588 , 459226 , 462073 , 464231 , 465146 , 465688 , 466571 , 467600 , 477445 , 478304 , 478325 , 478326 , 478416 , 478419 , 478580 , 478602 , 478629 , 504933 , 505101 , 514197 , 516590 , 526316 , 531290 , 550499 , 562180 , 567287 , 569813 , 577653 , 580413 , 586092 , 586233 , 594908 , 600637 , 600638 , 600787 , 602107 , 619324 , 621918 , 622505 , 639075 , 642517 , 643559 , 647000 , 653589 , 656561 , 716192 , 716343 , 721602 , 725696 , 759428 , 762544 , 769576 , 775448 , 776995 , 778323 , 783555 , 791236 , 792858 , 797740 , 806708 , 806711 , 806727 , 808179 );
Copy