3
12.49 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
707695
579366
431953
678587
554796
514101
192551
720778
519262
415380
604301
36832
810694
578512
809506
495126
424923
516648
609807
507013
514644
424333
466299
474257
468628
522838
488585
447682
484612
507879
428770
467721
515891
525197
807993
531488
521877
559884
608926
491775
563536
557981
421526
589642
474767
475848
469876
517856
501178
632642
489998
600006
435738
443741
559184
544461
491200
624846
500904
484519
515119
409947
387720
521575
404652
545000
497160
527048
]
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 (707695 , 579366 , 431953 , 678587 , 554796 , 514101 , 192551 , 720778 , 519262 , 415380 , 604301 , 36832 , 810694 , 578512 , 809506 , 495126 , 424923 , 516648 , 609807 , 507013 , 514644 , 424333 , 466299 , 474257 , 468628 , 522838 , 488585 , 447682 , 484612 , 507879 , 428770 , 467721 , 515891 , 525197 , 807993 , 531488 , 521877 , 559884 , 608926 , 491775 , 563536 , 557981 , 421526 , 589642 , 474767 , 475848 , 469876 , 517856 , 501178 , 632642 , 489998 , 600006 , 435738 , 443741 , 559184 , 544461 , 491200 , 624846 , 500904 , 484519 , 515119 , 409947 , 387720 , 521575 , 404652 , 545000 , 497160 , 527048 );
Copy
4
3.38 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
36832
192551
387720
404652
409947
415380
421526
424333
424923
428770
431953
435738
443741
447682
466299
467721
468628
469876
474257
474767
475848
484519
484612
488585
489998
491200
491775
495126
497160
500904
501178
507013
507879
514101
514644
515119
515891
516648
517856
519262
521575
521877
522838
525197
527048
531488
544461
545000
554796
557981
559184
559884
563536
578512
579366
589642
600006
604301
608926
609807
624846
632642
678587
707695
720778
807993
809506
810694
]
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 (36832 , 192551 , 387720 , 404652 , 409947 , 415380 , 421526 , 424333 , 424923 , 428770 , 431953 , 435738 , 443741 , 447682 , 466299 , 467721 , 468628 , 469876 , 474257 , 474767 , 475848 , 484519 , 484612 , 488585 , 489998 , 491200 , 491775 , 495126 , 497160 , 500904 , 501178 , 507013 , 507879 , 514101 , 514644 , 515119 , 515891 , 516648 , 517856 , 519262 , 521575 , 521877 , 522838 , 525197 , 527048 , 531488 , 544461 , 545000 , 554796 , 557981 , 559184 , 559884 , 563536 , 578512 , 579366 , 589642 , 600006 , 604301 , 608926 , 609807 , 624846 , 632642 , 678587 , 707695 , 720778 , 807993 , 809506 , 810694 );
Copy
5
115.73 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
36832
192551
387720
404652
409947
415380
421526
424333
424923
428770
431953
435738
443741
447682
466299
467721
468628
469876
474257
474767
475848
484519
484612
488585
489998
491200
491775
495126
497160
500904
501178
507013
507879
514101
514644
515119
515891
516648
517856
519262
521575
521877
522838
525197
527048
531488
544461
545000
554796
557981
559184
559884
563536
578512
579366
589642
600006
604301
608926
609807
624846
632642
678587
707695
720778
807993
809506
810694
]
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 (36832 , 192551 , 387720 , 404652 , 409947 , 415380 , 421526 , 424333 , 424923 , 428770 , 431953 , 435738 , 443741 , 447682 , 466299 , 467721 , 468628 , 469876 , 474257 , 474767 , 475848 , 484519 , 484612 , 488585 , 489998 , 491200 , 491775 , 495126 , 497160 , 500904 , 501178 , 507013 , 507879 , 514101 , 514644 , 515119 , 515891 , 516648 , 517856 , 519262 , 521575 , 521877 , 522838 , 525197 , 527048 , 531488 , 544461 , 545000 , 554796 , 557981 , 559184 , 559884 , 563536 , 578512 , 579366 , 589642 , 600006 , 604301 , 608926 , 609807 , 624846 , 632642 , 678587 , 707695 , 720778 , 807993 , 809506 , 810694 );
Copy