3
10.52 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
799894
759088
782168
818135
749760
723597
816641
746207
709372
794403
779534
813771
532041
477067
716014
779768
786542
779576
799357
394338
437670
579227
787636
400134
784303
514007
582197
613286
729678
785945
725788
727016
813918
476337
811919
758594
763529
400199
485460
708582
398394
467662
467663
439648
524339
577051
519735
516226
394251
400179
448145
624288
517282
460262
451826
465312
433605
485172
537161
580061
726882
486533
609238
467656
521359
454315
407414
596208
400181
485462
489941
618359
]
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 (799894 , 759088 , 782168 , 818135 , 749760 , 723597 , 816641 , 746207 , 709372 , 794403 , 779534 , 813771 , 532041 , 477067 , 716014 , 779768 , 786542 , 779576 , 799357 , 394338 , 437670 , 579227 , 787636 , 400134 , 784303 , 514007 , 582197 , 613286 , 729678 , 785945 , 725788 , 727016 , 813918 , 476337 , 811919 , 758594 , 763529 , 400199 , 485460 , 708582 , 398394 , 467662 , 467663 , 439648 , 524339 , 577051 , 519735 , 516226 , 394251 , 400179 , 448145 , 624288 , 517282 , 460262 , 451826 , 465312 , 433605 , 485172 , 537161 , 580061 , 726882 , 486533 , 609238 , 467656 , 521359 , 454315 , 407414 , 596208 , 400181 , 485462 , 489941 , 618359 );
Copy
4
2.65 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
394251
394338
398394
400134
400179
400181
400199
407414
433605
437670
439648
448145
451826
454315
460262
465312
467656
467662
467663
476337
477067
485172
485460
485462
486533
489941
514007
516226
517282
519735
521359
524339
532041
537161
577051
579227
580061
582197
596208
609238
613286
618359
624288
708582
709372
716014
723597
725788
726882
727016
729678
746207
749760
758594
759088
763529
779534
779576
779768
782168
784303
785945
786542
787636
794403
799357
799894
811919
813771
813918
816641
818135
]
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 (394251 , 394338 , 398394 , 400134 , 400179 , 400181 , 400199 , 407414 , 433605 , 437670 , 439648 , 448145 , 451826 , 454315 , 460262 , 465312 , 467656 , 467662 , 467663 , 476337 , 477067 , 485172 , 485460 , 485462 , 486533 , 489941 , 514007 , 516226 , 517282 , 519735 , 521359 , 524339 , 532041 , 537161 , 577051 , 579227 , 580061 , 582197 , 596208 , 609238 , 613286 , 618359 , 624288 , 708582 , 709372 , 716014 , 723597 , 725788 , 726882 , 727016 , 729678 , 746207 , 749760 , 758594 , 759088 , 763529 , 779534 , 779576 , 779768 , 782168 , 784303 , 785945 , 786542 , 787636 , 794403 , 799357 , 799894 , 811919 , 813771 , 813918 , 816641 , 818135 );
Copy
5
105.47 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
394251
394338
398394
400134
400179
400181
400199
407414
433605
437670
439648
448145
451826
454315
460262
465312
467656
467662
467663
476337
477067
485172
485460
485462
486533
489941
514007
516226
517282
519735
521359
524339
532041
537161
577051
579227
580061
582197
596208
609238
613286
618359
624288
708582
709372
716014
723597
725788
726882
727016
729678
746207
749760
758594
759088
763529
779534
779576
779768
782168
784303
785945
786542
787636
794403
799357
799894
811919
813771
813918
816641
818135
]
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 (394251 , 394338 , 398394 , 400134 , 400179 , 400181 , 400199 , 407414 , 433605 , 437670 , 439648 , 448145 , 451826 , 454315 , 460262 , 465312 , 467656 , 467662 , 467663 , 476337 , 477067 , 485172 , 485460 , 485462 , 486533 , 489941 , 514007 , 516226 , 517282 , 519735 , 521359 , 524339 , 532041 , 537161 , 577051 , 579227 , 580061 , 582197 , 596208 , 609238 , 613286 , 618359 , 624288 , 708582 , 709372 , 716014 , 723597 , 725788 , 726882 , 727016 , 729678 , 746207 , 749760 , 758594 , 759088 , 763529 , 779534 , 779576 , 779768 , 782168 , 784303 , 785945 , 786542 , 787636 , 794403 , 799357 , 799894 , 811919 , 813771 , 813918 , 816641 , 818135 );
Copy