4
8.17 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
771204
709707
741318
474322
680378
420405
626579
512547
469625
793822
461775
588317
450914
466400
452756
710866
805259
813428
734569
735900
704840
700689
796199
452731
557833
516496
734284
738818
761505
427931
804739
797392
626324
514447
478979
748034
452770
730112
707089
792428
803936
442524
468673
493199
509704
453025
509325
511505
493402
758097
509324
524277
654919
647085
454032
481602
509331
596714
761573
758224
489257
449761
489258
567046
459122
450343
]
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 (771204 , 709707 , 741318 , 474322 , 680378 , 420405 , 626579 , 512547 , 469625 , 793822 , 461775 , 588317 , 450914 , 466400 , 452756 , 710866 , 805259 , 813428 , 734569 , 735900 , 704840 , 700689 , 796199 , 452731 , 557833 , 516496 , 734284 , 738818 , 761505 , 427931 , 804739 , 797392 , 626324 , 514447 , 478979 , 748034 , 452770 , 730112 , 707089 , 792428 , 803936 , 442524 , 468673 , 493199 , 509704 , 453025 , 509325 , 511505 , 493402 , 758097 , 509324 , 524277 , 654919 , 647085 , 454032 , 481602 , 509331 , 596714 , 761573 , 758224 , 489257 , 449761 , 489258 , 567046 , 459122 , 450343 );
Copy
5
2.47 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
420405
427931
442524
449761
450343
450914
452731
452756
452770
453025
454032
459122
461775
466400
468673
469625
474322
478979
481602
489257
489258
493199
493402
509324
509325
509331
509704
511505
512547
514447
516496
524277
557833
567046
588317
596714
626324
626579
647085
654919
680378
700689
704840
707089
709707
710866
730112
734284
734569
735900
738818
741318
748034
758097
758224
761505
761573
771204
792428
796199
797392
803936
804739
805259
813428
]
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 (420405 , 427931 , 442524 , 449761 , 450343 , 450914 , 452731 , 452756 , 452770 , 453025 , 454032 , 459122 , 461775 , 466400 , 468673 , 469625 , 474322 , 478979 , 481602 , 489257 , 489258 , 493199 , 493402 , 509324 , 509325 , 509331 , 509704 , 511505 , 512547 , 514447 , 516496 , 524277 , 557833 , 567046 , 588317 , 596714 , 626324 , 626579 , 647085 , 654919 , 680378 , 700689 , 704840 , 707089 , 709707 , 710866 , 730112 , 734284 , 734569 , 735900 , 738818 , 741318 , 748034 , 758097 , 758224 , 761505 , 761573 , 771204 , 792428 , 796199 , 797392 , 803936 , 804739 , 805259 , 813428 );
Copy
6
73.39 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
420405
427931
442524
449761
450343
450914
452731
452756
452770
453025
454032
459122
461775
466400
468673
469625
474322
478979
481602
489257
489258
493199
493402
509324
509325
509331
509704
511505
512547
514447
516496
524277
557833
567046
588317
596714
626324
626579
647085
654919
680378
700689
704840
707089
709707
710866
730112
734284
734569
735900
738818
741318
748034
758097
758224
761505
761573
771204
792428
796199
797392
803936
804739
805259
813428
]
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 (420405 , 427931 , 442524 , 449761 , 450343 , 450914 , 452731 , 452756 , 452770 , 453025 , 454032 , 459122 , 461775 , 466400 , 468673 , 469625 , 474322 , 478979 , 481602 , 489257 , 489258 , 493199 , 493402 , 509324 , 509325 , 509331 , 509704 , 511505 , 512547 , 514447 , 516496 , 524277 , 557833 , 567046 , 588317 , 596714 , 626324 , 626579 , 647085 , 654919 , 680378 , 700689 , 704840 , 707089 , 709707 , 710866 , 730112 , 734284 , 734569 , 735900 , 738818 , 741318 , 748034 , 758097 , 758224 , 761505 , 761573 , 771204 , 792428 , 796199 , 797392 , 803936 , 804739 , 805259 , 813428 );
Copy