3
8.85 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
550724
551967
590922
750378
552882
384042
500684
533126
585381
273182
709649
734995
186171
538657
550138
533129
552917
384472
651667
408988
448328
533145
509776
429540
20948
814198
740313
413140
273080
595637
622633
533124
533128
651065
752843
533131
615947
438588
533133
621020
556387
580129
534528
651465
385274
446478
565480
712475
457209
623610
513136
564216
588228
564209
425804
538295
671835
672212
590981
499885
467715
599789
516873
585889
607879
502533
]
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 (550724 , 551967 , 590922 , 750378 , 552882 , 384042 , 500684 , 533126 , 585381 , 273182 , 709649 , 734995 , 186171 , 538657 , 550138 , 533129 , 552917 , 384472 , 651667 , 408988 , 448328 , 533145 , 509776 , 429540 , 20948 , 814198 , 740313 , 413140 , 273080 , 595637 , 622633 , 533124 , 533128 , 651065 , 752843 , 533131 , 615947 , 438588 , 533133 , 621020 , 556387 , 580129 , 534528 , 651465 , 385274 , 446478 , 565480 , 712475 , 457209 , 623610 , 513136 , 564216 , 588228 , 564209 , 425804 , 538295 , 671835 , 672212 , 590981 , 499885 , 467715 , 599789 , 516873 , 585889 , 607879 , 502533 );
Copy
4
213.15 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
20948
186171
273080
273182
384042
384472
385274
408988
413140
425804
429540
438588
446478
448328
457209
467715
499885
500684
502533
509776
513136
516873
533124
533126
533128
533129
533131
533133
533145
534528
538295
538657
550138
550724
551967
552882
552917
556387
564209
564216
565480
580129
585381
585889
588228
590922
590981
595637
599789
607879
615947
621020
622633
623610
651065
651465
651667
671835
672212
709649
712475
734995
740313
750378
752843
814198
]
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 (20948 , 186171 , 273080 , 273182 , 384042 , 384472 , 385274 , 408988 , 413140 , 425804 , 429540 , 438588 , 446478 , 448328 , 457209 , 467715 , 499885 , 500684 , 502533 , 509776 , 513136 , 516873 , 533124 , 533126 , 533128 , 533129 , 533131 , 533133 , 533145 , 534528 , 538295 , 538657 , 550138 , 550724 , 551967 , 552882 , 552917 , 556387 , 564209 , 564216 , 565480 , 580129 , 585381 , 585889 , 588228 , 590922 , 590981 , 595637 , 599789 , 607879 , 615947 , 621020 , 622633 , 623610 , 651065 , 651465 , 651667 , 671835 , 672212 , 709649 , 712475 , 734995 , 740313 , 750378 , 752843 , 814198 );
Copy
5
119.55 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
20948
186171
273080
273182
384042
384472
385274
408988
413140
425804
429540
438588
446478
448328
457209
467715
499885
500684
502533
509776
513136
516873
533124
533126
533128
533129
533131
533133
533145
534528
538295
538657
550138
550724
551967
552882
552917
556387
564209
564216
565480
580129
585381
585889
588228
590922
590981
595637
599789
607879
615947
621020
622633
623610
651065
651465
651667
671835
672212
709649
712475
734995
740313
750378
752843
814198
]
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 (20948 , 186171 , 273080 , 273182 , 384042 , 384472 , 385274 , 408988 , 413140 , 425804 , 429540 , 438588 , 446478 , 448328 , 457209 , 467715 , 499885 , 500684 , 502533 , 509776 , 513136 , 516873 , 533124 , 533126 , 533128 , 533129 , 533131 , 533133 , 533145 , 534528 , 538295 , 538657 , 550138 , 550724 , 551967 , 552882 , 552917 , 556387 , 564209 , 564216 , 565480 , 580129 , 585381 , 585889 , 588228 , 590922 , 590981 , 595637 , 599789 , 607879 , 615947 , 621020 , 622633 , 623610 , 651065 , 651465 , 651667 , 671835 , 672212 , 709649 , 712475 , 734995 , 740313 , 750378 , 752843 , 814198 );
Copy