3
10.62 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
251147
430264
398284
402536
334376
428143
495114
468790
791451
543876
431607
637700
798868
516824
767235
522617
578138
706467
665342
770790
570741
513124
448794
452208
494758
704214
665311
598066
586668
807208
457804
516126
442987
453780
664289
558608
590741
588962
633147
475997
516070
522029
495465
490924
404217
460071
474162
552126
379600
444723
472309
524365
488207
642359
444463
495109
458197
648252
516763
632708
601613
516820
645284
591351
489237
]
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 (251147 , 430264 , 398284 , 402536 , 334376 , 428143 , 495114 , 468790 , 791451 , 543876 , 431607 , 637700 , 798868 , 516824 , 767235 , 522617 , 578138 , 706467 , 665342 , 770790 , 570741 , 513124 , 448794 , 452208 , 494758 , 704214 , 665311 , 598066 , 586668 , 807208 , 457804 , 516126 , 442987 , 453780 , 664289 , 558608 , 590741 , 588962 , 633147 , 475997 , 516070 , 522029 , 495465 , 490924 , 404217 , 460071 , 474162 , 552126 , 379600 , 444723 , 472309 , 524365 , 488207 , 642359 , 444463 , 495109 , 458197 , 648252 , 516763 , 632708 , 601613 , 516820 , 645284 , 591351 , 489237 );
Copy
4
3.13 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
251147
334376
379600
398284
402536
404217
428143
430264
431607
442987
444463
444723
448794
452208
453780
457804
458197
460071
468790
472309
474162
475997
488207
489237
490924
494758
495109
495114
495465
513124
516070
516126
516763
516820
516824
522029
522617
524365
543876
552126
558608
570741
578138
586668
588962
590741
591351
598066
601613
632708
633147
637700
642359
645284
648252
664289
665311
665342
704214
706467
767235
770790
791451
798868
807208
]
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 (251147 , 334376 , 379600 , 398284 , 402536 , 404217 , 428143 , 430264 , 431607 , 442987 , 444463 , 444723 , 448794 , 452208 , 453780 , 457804 , 458197 , 460071 , 468790 , 472309 , 474162 , 475997 , 488207 , 489237 , 490924 , 494758 , 495109 , 495114 , 495465 , 513124 , 516070 , 516126 , 516763 , 516820 , 516824 , 522029 , 522617 , 524365 , 543876 , 552126 , 558608 , 570741 , 578138 , 586668 , 588962 , 590741 , 591351 , 598066 , 601613 , 632708 , 633147 , 637700 , 642359 , 645284 , 648252 , 664289 , 665311 , 665342 , 704214 , 706467 , 767235 , 770790 , 791451 , 798868 , 807208 );
Copy
5
118.54 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
251147
334376
379600
398284
402536
404217
428143
430264
431607
442987
444463
444723
448794
452208
453780
457804
458197
460071
468790
472309
474162
475997
488207
489237
490924
494758
495109
495114
495465
513124
516070
516126
516763
516820
516824
522029
522617
524365
543876
552126
558608
570741
578138
586668
588962
590741
591351
598066
601613
632708
633147
637700
642359
645284
648252
664289
665311
665342
704214
706467
767235
770790
791451
798868
807208
]
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 (251147 , 334376 , 379600 , 398284 , 402536 , 404217 , 428143 , 430264 , 431607 , 442987 , 444463 , 444723 , 448794 , 452208 , 453780 , 457804 , 458197 , 460071 , 468790 , 472309 , 474162 , 475997 , 488207 , 489237 , 490924 , 494758 , 495109 , 495114 , 495465 , 513124 , 516070 , 516126 , 516763 , 516820 , 516824 , 522029 , 522617 , 524365 , 543876 , 552126 , 558608 , 570741 , 578138 , 586668 , 588962 , 590741 , 591351 , 598066 , 601613 , 632708 , 633147 , 637700 , 642359 , 645284 , 648252 , 664289 , 665311 , 665342 , 704214 , 706467 , 767235 , 770790 , 791451 , 798868 , 807208 );
Copy