3
11.38 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
646202
594879
828369
514942
506467
828257
827104
736481
641418
555686
210281
589739
96968
822599
721072
534039
97107
387221
512821
393039
533867
709052
736489
396990
639413
717849
476935
526487
667317
821352
745999
707347
732930
724230
544064
473305
633155
746006
474094
555688
533313
528618
476270
453190
565362
583984
458222
470500
712964
472332
526428
565391
646433
452080
649912
507309
603652
484161
619823
587267
457786
562269
491380
577349
401933
562282
545943
417324
416886
577350
614737
659328
691899
500931
]
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 (646202 , 594879 , 828369 , 514942 , 506467 , 828257 , 827104 , 736481 , 641418 , 555686 , 210281 , 589739 , 96968 , 822599 , 721072 , 534039 , 97107 , 387221 , 512821 , 393039 , 533867 , 709052 , 736489 , 396990 , 639413 , 717849 , 476935 , 526487 , 667317 , 821352 , 745999 , 707347 , 732930 , 724230 , 544064 , 473305 , 633155 , 746006 , 474094 , 555688 , 533313 , 528618 , 476270 , 453190 , 565362 , 583984 , 458222 , 470500 , 712964 , 472332 , 526428 , 565391 , 646433 , 452080 , 649912 , 507309 , 603652 , 484161 , 619823 , 587267 , 457786 , 562269 , 491380 , 577349 , 401933 , 562282 , 545943 , 417324 , 416886 , 577350 , 614737 , 659328 , 691899 , 500931 );
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
96968
97107
210281
387221
393039
396990
401933
416886
417324
452080
453190
457786
458222
470500
472332
473305
474094
476270
476935
484161
491380
500931
506467
507309
512821
514942
526428
526487
528618
533313
533867
534039
544064
545943
555686
555688
562269
562282
565362
565391
577349
577350
583984
587267
589739
594879
603652
614737
619823
633155
639413
641418
646202
646433
649912
659328
667317
691899
707347
709052
712964
717849
721072
724230
732930
736481
736489
745999
746006
821352
822599
827104
828257
828369
]
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 (96968 , 97107 , 210281 , 387221 , 393039 , 396990 , 401933 , 416886 , 417324 , 452080 , 453190 , 457786 , 458222 , 470500 , 472332 , 473305 , 474094 , 476270 , 476935 , 484161 , 491380 , 500931 , 506467 , 507309 , 512821 , 514942 , 526428 , 526487 , 528618 , 533313 , 533867 , 534039 , 544064 , 545943 , 555686 , 555688 , 562269 , 562282 , 565362 , 565391 , 577349 , 577350 , 583984 , 587267 , 589739 , 594879 , 603652 , 614737 , 619823 , 633155 , 639413 , 641418 , 646202 , 646433 , 649912 , 659328 , 667317 , 691899 , 707347 , 709052 , 712964 , 717849 , 721072 , 724230 , 732930 , 736481 , 736489 , 745999 , 746006 , 821352 , 822599 , 827104 , 828257 , 828369 );
Copy
5
89.71 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
96968
97107
210281
387221
393039
396990
401933
416886
417324
452080
453190
457786
458222
470500
472332
473305
474094
476270
476935
484161
491380
500931
506467
507309
512821
514942
526428
526487
528618
533313
533867
534039
544064
545943
555686
555688
562269
562282
565362
565391
577349
577350
583984
587267
589739
594879
603652
614737
619823
633155
639413
641418
646202
646433
649912
659328
667317
691899
707347
709052
712964
717849
721072
724230
732930
736481
736489
745999
746006
821352
822599
827104
828257
828369
]
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 (96968 , 97107 , 210281 , 387221 , 393039 , 396990 , 401933 , 416886 , 417324 , 452080 , 453190 , 457786 , 458222 , 470500 , 472332 , 473305 , 474094 , 476270 , 476935 , 484161 , 491380 , 500931 , 506467 , 507309 , 512821 , 514942 , 526428 , 526487 , 528618 , 533313 , 533867 , 534039 , 544064 , 545943 , 555686 , 555688 , 562269 , 562282 , 565362 , 565391 , 577349 , 577350 , 583984 , 587267 , 589739 , 594879 , 603652 , 614737 , 619823 , 633155 , 639413 , 641418 , 646202 , 646433 , 649912 , 659328 , 667317 , 691899 , 707347 , 709052 , 712964 , 717849 , 721072 , 724230 , 732930 , 736481 , 736489 , 745999 , 746006 , 821352 , 822599 , 827104 , 828257 , 828369 );
Copy