3
11.69 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
631085
623071
471038
582438
583277
796653
650540
607845
555022
807406
806801
592897
492651
581327
533108
563155
483990
534657
420144
498897
572734
429547
421712
456924
527500
687620
609040
576462
431555
471041
510912
671085
650537
552682
618069
416843
511903
517081
527372
565932
551928
556400
425294
428264
424436
434112
584980
544037
586903
628575
618299
492811
493743
529293
538093
605094
474061
555429
521256
593032
585210
445781
580139
447104
493022
503144
513222
520138
494694
651954
623644
603703
518996
560340
]
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 (631085 , 623071 , 471038 , 582438 , 583277 , 796653 , 650540 , 607845 , 555022 , 807406 , 806801 , 592897 , 492651 , 581327 , 533108 , 563155 , 483990 , 534657 , 420144 , 498897 , 572734 , 429547 , 421712 , 456924 , 527500 , 687620 , 609040 , 576462 , 431555 , 471041 , 510912 , 671085 , 650537 , 552682 , 618069 , 416843 , 511903 , 517081 , 527372 , 565932 , 551928 , 556400 , 425294 , 428264 , 424436 , 434112 , 584980 , 544037 , 586903 , 628575 , 618299 , 492811 , 493743 , 529293 , 538093 , 605094 , 474061 , 555429 , 521256 , 593032 , 585210 , 445781 , 580139 , 447104 , 493022 , 503144 , 513222 , 520138 , 494694 , 651954 , 623644 , 603703 , 518996 , 560340 );
Copy
4
2.99 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
416843
420144
421712
424436
425294
428264
429547
431555
434112
445781
447104
456924
471038
471041
474061
483990
492651
492811
493022
493743
494694
498897
503144
510912
511903
513222
517081
518996
520138
521256
527372
527500
529293
533108
534657
538093
544037
551928
552682
555022
555429
556400
560340
563155
565932
572734
576462
580139
581327
582438
583277
584980
585210
586903
592897
593032
603703
605094
607845
609040
618069
618299
623071
623644
628575
631085
650537
650540
651954
671085
687620
796653
806801
807406
]
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 (416843 , 420144 , 421712 , 424436 , 425294 , 428264 , 429547 , 431555 , 434112 , 445781 , 447104 , 456924 , 471038 , 471041 , 474061 , 483990 , 492651 , 492811 , 493022 , 493743 , 494694 , 498897 , 503144 , 510912 , 511903 , 513222 , 517081 , 518996 , 520138 , 521256 , 527372 , 527500 , 529293 , 533108 , 534657 , 538093 , 544037 , 551928 , 552682 , 555022 , 555429 , 556400 , 560340 , 563155 , 565932 , 572734 , 576462 , 580139 , 581327 , 582438 , 583277 , 584980 , 585210 , 586903 , 592897 , 593032 , 603703 , 605094 , 607845 , 609040 , 618069 , 618299 , 623071 , 623644 , 628575 , 631085 , 650537 , 650540 , 651954 , 671085 , 687620 , 796653 , 806801 , 807406 );
Copy
5
82.66 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
416843
420144
421712
424436
425294
428264
429547
431555
434112
445781
447104
456924
471038
471041
474061
483990
492651
492811
493022
493743
494694
498897
503144
510912
511903
513222
517081
518996
520138
521256
527372
527500
529293
533108
534657
538093
544037
551928
552682
555022
555429
556400
560340
563155
565932
572734
576462
580139
581327
582438
583277
584980
585210
586903
592897
593032
603703
605094
607845
609040
618069
618299
623071
623644
628575
631085
650537
650540
651954
671085
687620
796653
806801
807406
]
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 (416843 , 420144 , 421712 , 424436 , 425294 , 428264 , 429547 , 431555 , 434112 , 445781 , 447104 , 456924 , 471038 , 471041 , 474061 , 483990 , 492651 , 492811 , 493022 , 493743 , 494694 , 498897 , 503144 , 510912 , 511903 , 513222 , 517081 , 518996 , 520138 , 521256 , 527372 , 527500 , 529293 , 533108 , 534657 , 538093 , 544037 , 551928 , 552682 , 555022 , 555429 , 556400 , 560340 , 563155 , 565932 , 572734 , 576462 , 580139 , 581327 , 582438 , 583277 , 584980 , 585210 , 586903 , 592897 , 593032 , 603703 , 605094 , 607845 , 609040 , 618069 , 618299 , 623071 , 623644 , 628575 , 631085 , 650537 , 650540 , 651954 , 671085 , 687620 , 796653 , 806801 , 807406 );
Copy