3
12.93 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
465372
465362
465388
466270
526735
466262
465371
465377
465360
789718
809248
524654
540351
643919
707310
429788
779116
758140
756443
814785
782657
756231
673963
760808
760811
741291
705710
502786
814341
814425
532953
607218
607345
760805
511684
720258
650800
760791
651135
811506
596534
805487
816724
531407
646029
633111
451935
817099
540483
817104
821268
818741
714408
677319
524331
524291
699824
821620
820331
524289
666196
810905
815305
817865
383366
522881
573467
469580
466223
634782
465350
465330
814903
452061
535013
]
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 (465372 , 465362 , 465388 , 466270 , 526735 , 466262 , 465371 , 465377 , 465360 , 789718 , 809248 , 524654 , 540351 , 643919 , 707310 , 429788 , 779116 , 758140 , 756443 , 814785 , 782657 , 756231 , 673963 , 760808 , 760811 , 741291 , 705710 , 502786 , 814341 , 814425 , 532953 , 607218 , 607345 , 760805 , 511684 , 720258 , 650800 , 760791 , 651135 , 811506 , 596534 , 805487 , 816724 , 531407 , 646029 , 633111 , 451935 , 817099 , 540483 , 817104 , 821268 , 818741 , 714408 , 677319 , 524331 , 524291 , 699824 , 821620 , 820331 , 524289 , 666196 , 810905 , 815305 , 817865 , 383366 , 522881 , 573467 , 469580 , 466223 , 634782 , 465350 , 465330 , 814903 , 452061 , 535013 );
Copy
4
2.71 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
383366
429788
451935
452061
465330
465350
465360
465362
465371
465372
465377
465388
466223
466262
466270
469580
502786
511684
522881
524289
524291
524331
524654
526735
531407
532953
535013
540351
540483
573467
596534
607218
607345
633111
634782
643919
646029
650800
651135
666196
673963
677319
699824
705710
707310
714408
720258
741291
756231
756443
758140
760791
760805
760808
760811
779116
782657
789718
805487
809248
810905
811506
814341
814425
814785
814903
815305
816724
817099
817104
817865
818741
820331
821268
821620
]
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 (383366 , 429788 , 451935 , 452061 , 465330 , 465350 , 465360 , 465362 , 465371 , 465372 , 465377 , 465388 , 466223 , 466262 , 466270 , 469580 , 502786 , 511684 , 522881 , 524289 , 524291 , 524331 , 524654 , 526735 , 531407 , 532953 , 535013 , 540351 , 540483 , 573467 , 596534 , 607218 , 607345 , 633111 , 634782 , 643919 , 646029 , 650800 , 651135 , 666196 , 673963 , 677319 , 699824 , 705710 , 707310 , 714408 , 720258 , 741291 , 756231 , 756443 , 758140 , 760791 , 760805 , 760808 , 760811 , 779116 , 782657 , 789718 , 805487 , 809248 , 810905 , 811506 , 814341 , 814425 , 814785 , 814903 , 815305 , 816724 , 817099 , 817104 , 817865 , 818741 , 820331 , 821268 , 821620 );
Copy
5
82.86 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
383366
429788
451935
452061
465330
465350
465360
465362
465371
465372
465377
465388
466223
466262
466270
469580
502786
511684
522881
524289
524291
524331
524654
526735
531407
532953
535013
540351
540483
573467
596534
607218
607345
633111
634782
643919
646029
650800
651135
666196
673963
677319
699824
705710
707310
714408
720258
741291
756231
756443
758140
760791
760805
760808
760811
779116
782657
789718
805487
809248
810905
811506
814341
814425
814785
814903
815305
816724
817099
817104
817865
818741
820331
821268
821620
]
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 (383366 , 429788 , 451935 , 452061 , 465330 , 465350 , 465360 , 465362 , 465371 , 465372 , 465377 , 465388 , 466223 , 466262 , 466270 , 469580 , 502786 , 511684 , 522881 , 524289 , 524291 , 524331 , 524654 , 526735 , 531407 , 532953 , 535013 , 540351 , 540483 , 573467 , 596534 , 607218 , 607345 , 633111 , 634782 , 643919 , 646029 , 650800 , 651135 , 666196 , 673963 , 677319 , 699824 , 705710 , 707310 , 714408 , 720258 , 741291 , 756231 , 756443 , 758140 , 760791 , 760805 , 760808 , 760811 , 779116 , 782657 , 789718 , 805487 , 809248 , 810905 , 811506 , 814341 , 814425 , 814785 , 814903 , 815305 , 816724 , 817099 , 817104 , 817865 , 818741 , 820331 , 821268 , 821620 );
Copy