3
15.43 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
763475
751163
615687
497629
757291
766282
768247
615694
392994
398003
420812
495642
442587
468913
718625
795369
449307
437360
489074
436827
495640
445763
812088
745198
603148
613928
451028
450437
619975
567681
554947
773885
624994
436648
743893
555253
462071
566374
504171
605841
555434
491052
406041
427623
449320
441757
444848
689520
14711
552798
462714
516648
501724
572711
625001
491858
592288
503655
525286
413242
558016
618476
543419
562906
468065
606217
552061
]
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 (763475 , 751163 , 615687 , 497629 , 757291 , 766282 , 768247 , 615694 , 392994 , 398003 , 420812 , 495642 , 442587 , 468913 , 718625 , 795369 , 449307 , 437360 , 489074 , 436827 , 495640 , 445763 , 812088 , 745198 , 603148 , 613928 , 451028 , 450437 , 619975 , 567681 , 554947 , 773885 , 624994 , 436648 , 743893 , 555253 , 462071 , 566374 , 504171 , 605841 , 555434 , 491052 , 406041 , 427623 , 449320 , 441757 , 444848 , 689520 , 14711 , 552798 , 462714 , 516648 , 501724 , 572711 , 625001 , 491858 , 592288 , 503655 , 525286 , 413242 , 558016 , 618476 , 543419 , 562906 , 468065 , 606217 , 552061 );
Copy
4
2.81 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
14711
392994
398003
406041
413242
420812
427623
436648
436827
437360
441757
442587
444848
445763
449307
449320
450437
451028
462071
462714
468065
468913
489074
491052
491858
495640
495642
497629
501724
503655
504171
516648
525286
543419
552061
552798
554947
555253
555434
558016
562906
566374
567681
572711
592288
603148
605841
606217
613928
615687
615694
618476
619975
624994
625001
689520
718625
743893
745198
751163
757291
763475
766282
768247
773885
795369
812088
]
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 (14711 , 392994 , 398003 , 406041 , 413242 , 420812 , 427623 , 436648 , 436827 , 437360 , 441757 , 442587 , 444848 , 445763 , 449307 , 449320 , 450437 , 451028 , 462071 , 462714 , 468065 , 468913 , 489074 , 491052 , 491858 , 495640 , 495642 , 497629 , 501724 , 503655 , 504171 , 516648 , 525286 , 543419 , 552061 , 552798 , 554947 , 555253 , 555434 , 558016 , 562906 , 566374 , 567681 , 572711 , 592288 , 603148 , 605841 , 606217 , 613928 , 615687 , 615694 , 618476 , 619975 , 624994 , 625001 , 689520 , 718625 , 743893 , 745198 , 751163 , 757291 , 763475 , 766282 , 768247 , 773885 , 795369 , 812088 );
Copy
5
104.45 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
14711
392994
398003
406041
413242
420812
427623
436648
436827
437360
441757
442587
444848
445763
449307
449320
450437
451028
462071
462714
468065
468913
489074
491052
491858
495640
495642
497629
501724
503655
504171
516648
525286
543419
552061
552798
554947
555253
555434
558016
562906
566374
567681
572711
592288
603148
605841
606217
613928
615687
615694
618476
619975
624994
625001
689520
718625
743893
745198
751163
757291
763475
766282
768247
773885
795369
812088
]
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 (14711 , 392994 , 398003 , 406041 , 413242 , 420812 , 427623 , 436648 , 436827 , 437360 , 441757 , 442587 , 444848 , 445763 , 449307 , 449320 , 450437 , 451028 , 462071 , 462714 , 468065 , 468913 , 489074 , 491052 , 491858 , 495640 , 495642 , 497629 , 501724 , 503655 , 504171 , 516648 , 525286 , 543419 , 552061 , 552798 , 554947 , 555253 , 555434 , 558016 , 562906 , 566374 , 567681 , 572711 , 592288 , 603148 , 605841 , 606217 , 613928 , 615687 , 615694 , 618476 , 619975 , 624994 , 625001 , 689520 , 718625 , 743893 , 745198 , 751163 , 757291 , 763475 , 766282 , 768247 , 773885 , 795369 , 812088 );
Copy