3
7.18 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
536213
614376
552307
651012
761410
735027
803922
776798
725227
765215
498719
593072
731119
514697
774196
801572
733588
716324
725211
539139
573512
570174
452402
534135
559287
540552
772327
510907
388785
588402
725411
531803
526366
519341
612413
486530
532604
630546
723692
824168
724614
409272
538829
448246
451719
464296
405551
460283
619629
787364
490641
448919
446795
443943
472656
432334
458724
445056
823362
523204
797142
429538
604781
477982
455034
454107
563225
452170
474119
460444
470762
527405
407414
541380
475294
]
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 (536213 , 614376 , 552307 , 651012 , 761410 , 735027 , 803922 , 776798 , 725227 , 765215 , 498719 , 593072 , 731119 , 514697 , 774196 , 801572 , 733588 , 716324 , 725211 , 539139 , 573512 , 570174 , 452402 , 534135 , 559287 , 540552 , 772327 , 510907 , 388785 , 588402 , 725411 , 531803 , 526366 , 519341 , 612413 , 486530 , 532604 , 630546 , 723692 , 824168 , 724614 , 409272 , 538829 , 448246 , 451719 , 464296 , 405551 , 460283 , 619629 , 787364 , 490641 , 448919 , 446795 , 443943 , 472656 , 432334 , 458724 , 445056 , 823362 , 523204 , 797142 , 429538 , 604781 , 477982 , 455034 , 454107 , 563225 , 452170 , 474119 , 460444 , 470762 , 527405 , 407414 , 541380 , 475294 );
Copy
4
2.51 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
388785
405551
407414
409272
429538
432334
443943
445056
446795
448246
448919
451719
452170
452402
454107
455034
458724
460283
460444
464296
470762
472656
474119
475294
477982
486530
490641
498719
510907
514697
519341
523204
526366
527405
531803
532604
534135
536213
538829
539139
540552
541380
552307
559287
563225
570174
573512
588402
593072
604781
612413
614376
619629
630546
651012
716324
723692
724614
725211
725227
725411
731119
733588
735027
761410
765215
772327
774196
776798
787364
797142
801572
803922
823362
824168
]
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 (388785 , 405551 , 407414 , 409272 , 429538 , 432334 , 443943 , 445056 , 446795 , 448246 , 448919 , 451719 , 452170 , 452402 , 454107 , 455034 , 458724 , 460283 , 460444 , 464296 , 470762 , 472656 , 474119 , 475294 , 477982 , 486530 , 490641 , 498719 , 510907 , 514697 , 519341 , 523204 , 526366 , 527405 , 531803 , 532604 , 534135 , 536213 , 538829 , 539139 , 540552 , 541380 , 552307 , 559287 , 563225 , 570174 , 573512 , 588402 , 593072 , 604781 , 612413 , 614376 , 619629 , 630546 , 651012 , 716324 , 723692 , 724614 , 725211 , 725227 , 725411 , 731119 , 733588 , 735027 , 761410 , 765215 , 772327 , 774196 , 776798 , 787364 , 797142 , 801572 , 803922 , 823362 , 824168 );
Copy
5
106.92 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
388785
405551
407414
409272
429538
432334
443943
445056
446795
448246
448919
451719
452170
452402
454107
455034
458724
460283
460444
464296
470762
472656
474119
475294
477982
486530
490641
498719
510907
514697
519341
523204
526366
527405
531803
532604
534135
536213
538829
539139
540552
541380
552307
559287
563225
570174
573512
588402
593072
604781
612413
614376
619629
630546
651012
716324
723692
724614
725211
725227
725411
731119
733588
735027
761410
765215
772327
774196
776798
787364
797142
801572
803922
823362
824168
]
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 (388785 , 405551 , 407414 , 409272 , 429538 , 432334 , 443943 , 445056 , 446795 , 448246 , 448919 , 451719 , 452170 , 452402 , 454107 , 455034 , 458724 , 460283 , 460444 , 464296 , 470762 , 472656 , 474119 , 475294 , 477982 , 486530 , 490641 , 498719 , 510907 , 514697 , 519341 , 523204 , 526366 , 527405 , 531803 , 532604 , 534135 , 536213 , 538829 , 539139 , 540552 , 541380 , 552307 , 559287 , 563225 , 570174 , 573512 , 588402 , 593072 , 604781 , 612413 , 614376 , 619629 , 630546 , 651012 , 716324 , 723692 , 724614 , 725211 , 725227 , 725411 , 731119 , 733588 , 735027 , 761410 , 765215 , 772327 , 774196 , 776798 , 787364 , 797142 , 801572 , 803922 , 823362 , 824168 );
Copy