3
10.48 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
452962
794615
744070
757808
552379
720432
570764
588830
709637
581383
666056
488992
509666
558288
506873
603317
456607
581035
481580
603286
571094
557606
581041
456981
574385
618300
560080
446963
457290
483452
476441
465770
480650
486441
494299
555447
561333
603307
573105
577349
725214
466813
581929
557402
401965
526487
561615
483428
519385
538768
545943
567522
576713
550052
555434
610582
474561
574416
491680
471170
543255
662801
479292
654671
516880
382154
492711
614273
585725
]
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 (452962 , 794615 , 744070 , 757808 , 552379 , 720432 , 570764 , 588830 , 709637 , 581383 , 666056 , 488992 , 509666 , 558288 , 506873 , 603317 , 456607 , 581035 , 481580 , 603286 , 571094 , 557606 , 581041 , 456981 , 574385 , 618300 , 560080 , 446963 , 457290 , 483452 , 476441 , 465770 , 480650 , 486441 , 494299 , 555447 , 561333 , 603307 , 573105 , 577349 , 725214 , 466813 , 581929 , 557402 , 401965 , 526487 , 561615 , 483428 , 519385 , 538768 , 545943 , 567522 , 576713 , 550052 , 555434 , 610582 , 474561 , 574416 , 491680 , 471170 , 543255 , 662801 , 479292 , 654671 , 516880 , 382154 , 492711 , 614273 , 585725 );
Copy
4
2.44 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
382154
401965
446963
452962
456607
456981
457290
465770
466813
471170
474561
476441
479292
480650
481580
483428
483452
486441
488992
491680
492711
494299
506873
509666
516880
519385
526487
538768
543255
545943
550052
552379
555434
555447
557402
557606
558288
560080
561333
561615
567522
570764
571094
573105
574385
574416
576713
577349
581035
581041
581383
581929
585725
588830
603286
603307
603317
610582
614273
618300
654671
662801
666056
709637
720432
725214
744070
757808
794615
]
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 (382154 , 401965 , 446963 , 452962 , 456607 , 456981 , 457290 , 465770 , 466813 , 471170 , 474561 , 476441 , 479292 , 480650 , 481580 , 483428 , 483452 , 486441 , 488992 , 491680 , 492711 , 494299 , 506873 , 509666 , 516880 , 519385 , 526487 , 538768 , 543255 , 545943 , 550052 , 552379 , 555434 , 555447 , 557402 , 557606 , 558288 , 560080 , 561333 , 561615 , 567522 , 570764 , 571094 , 573105 , 574385 , 574416 , 576713 , 577349 , 581035 , 581041 , 581383 , 581929 , 585725 , 588830 , 603286 , 603307 , 603317 , 610582 , 614273 , 618300 , 654671 , 662801 , 666056 , 709637 , 720432 , 725214 , 744070 , 757808 , 794615 );
Copy
5
88.42 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
382154
401965
446963
452962
456607
456981
457290
465770
466813
471170
474561
476441
479292
480650
481580
483428
483452
486441
488992
491680
492711
494299
506873
509666
516880
519385
526487
538768
543255
545943
550052
552379
555434
555447
557402
557606
558288
560080
561333
561615
567522
570764
571094
573105
574385
574416
576713
577349
581035
581041
581383
581929
585725
588830
603286
603307
603317
610582
614273
618300
654671
662801
666056
709637
720432
725214
744070
757808
794615
]
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 (382154 , 401965 , 446963 , 452962 , 456607 , 456981 , 457290 , 465770 , 466813 , 471170 , 474561 , 476441 , 479292 , 480650 , 481580 , 483428 , 483452 , 486441 , 488992 , 491680 , 492711 , 494299 , 506873 , 509666 , 516880 , 519385 , 526487 , 538768 , 543255 , 545943 , 550052 , 552379 , 555434 , 555447 , 557402 , 557606 , 558288 , 560080 , 561333 , 561615 , 567522 , 570764 , 571094 , 573105 , 574385 , 574416 , 576713 , 577349 , 581035 , 581041 , 581383 , 581929 , 585725 , 588830 , 603286 , 603307 , 603317 , 610582 , 614273 , 618300 , 654671 , 662801 , 666056 , 709637 , 720432 , 725214 , 744070 , 757808 , 794615 );
Copy