3
216.68 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
553678
547936
669018
550220
588274
585325
462325
479128
397887
429598
451559
467002
507966
525317
513379
522442
527083
516209
527872
456140
454867
563447
564961
569238
551216
565264
385309
452998
472282
493270
497533
527953
536382
443661
504757
655437
675444
445443
514042
513385
508485
541400
444844
535326
655725
607027
640805
473439
492050
559039
573125
587056
596871
588934
395666
575007
567220
682263
611028
453370
670233
593008
396168
529172
595875
612455
473505
526811
590878
]
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 (553678 , 547936 , 669018 , 550220 , 588274 , 585325 , 462325 , 479128 , 397887 , 429598 , 451559 , 467002 , 507966 , 525317 , 513379 , 522442 , 527083 , 516209 , 527872 , 456140 , 454867 , 563447 , 564961 , 569238 , 551216 , 565264 , 385309 , 452998 , 472282 , 493270 , 497533 , 527953 , 536382 , 443661 , 504757 , 655437 , 675444 , 445443 , 514042 , 513385 , 508485 , 541400 , 444844 , 535326 , 655725 , 607027 , 640805 , 473439 , 492050 , 559039 , 573125 , 587056 , 596871 , 588934 , 395666 , 575007 , 567220 , 682263 , 611028 , 453370 , 670233 , 593008 , 396168 , 529172 , 595875 , 612455 , 473505 , 526811 , 590878 );
Copy
4
2.31 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
385309
395666
396168
397887
429598
443661
444844
445443
451559
452998
453370
454867
456140
462325
467002
472282
473439
473505
479128
492050
493270
497533
504757
507966
508485
513379
513385
514042
516209
522442
525317
526811
527083
527872
527953
529172
535326
536382
541400
547936
550220
551216
553678
559039
563447
564961
565264
567220
569238
573125
575007
585325
587056
588274
588934
590878
593008
595875
596871
607027
611028
612455
640805
655437
655725
669018
670233
675444
682263
]
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 (385309 , 395666 , 396168 , 397887 , 429598 , 443661 , 444844 , 445443 , 451559 , 452998 , 453370 , 454867 , 456140 , 462325 , 467002 , 472282 , 473439 , 473505 , 479128 , 492050 , 493270 , 497533 , 504757 , 507966 , 508485 , 513379 , 513385 , 514042 , 516209 , 522442 , 525317 , 526811 , 527083 , 527872 , 527953 , 529172 , 535326 , 536382 , 541400 , 547936 , 550220 , 551216 , 553678 , 559039 , 563447 , 564961 , 565264 , 567220 , 569238 , 573125 , 575007 , 585325 , 587056 , 588274 , 588934 , 590878 , 593008 , 595875 , 596871 , 607027 , 611028 , 612455 , 640805 , 655437 , 655725 , 669018 , 670233 , 675444 , 682263 );
Copy
5
284.38 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
385309
395666
396168
397887
429598
443661
444844
445443
451559
452998
453370
454867
456140
462325
467002
472282
473439
473505
479128
492050
493270
497533
504757
507966
508485
513379
513385
514042
516209
522442
525317
526811
527083
527872
527953
529172
535326
536382
541400
547936
550220
551216
553678
559039
563447
564961
565264
567220
569238
573125
575007
585325
587056
588274
588934
590878
593008
595875
596871
607027
611028
612455
640805
655437
655725
669018
670233
675444
682263
]
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 (385309 , 395666 , 396168 , 397887 , 429598 , 443661 , 444844 , 445443 , 451559 , 452998 , 453370 , 454867 , 456140 , 462325 , 467002 , 472282 , 473439 , 473505 , 479128 , 492050 , 493270 , 497533 , 504757 , 507966 , 508485 , 513379 , 513385 , 514042 , 516209 , 522442 , 525317 , 526811 , 527083 , 527872 , 527953 , 529172 , 535326 , 536382 , 541400 , 547936 , 550220 , 551216 , 553678 , 559039 , 563447 , 564961 , 565264 , 567220 , 569238 , 573125 , 575007 , 585325 , 587056 , 588274 , 588934 , 590878 , 593008 , 595875 , 596871 , 607027 , 611028 , 612455 , 640805 , 655437 , 655725 , 669018 , 670233 , 675444 , 682263 );
Copy