3
16.20 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
531560
516684
489328
814394
459570
466412
542831
634135
732681
714552
428385
428408
460606
472337
522398
565250
493235
632020
469616
592034
429181
720047
597999
419148
451565
520733
512830
531105
532755
530637
528361
559178
674994
666850
633435
466404
483550
496033
537686
623203
429770
540595
531160
647942
585994
609682
702675
445751
556741
532666
614029
632563
598105
599988
617420
495217
565241
616617
604460
424523
447452
493963
434000
676087
676112
617437
627807
472299
591695
597170
707391
621612
538803
557236
]
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 (531560 , 516684 , 489328 , 814394 , 459570 , 466412 , 542831 , 634135 , 732681 , 714552 , 428385 , 428408 , 460606 , 472337 , 522398 , 565250 , 493235 , 632020 , 469616 , 592034 , 429181 , 720047 , 597999 , 419148 , 451565 , 520733 , 512830 , 531105 , 532755 , 530637 , 528361 , 559178 , 674994 , 666850 , 633435 , 466404 , 483550 , 496033 , 537686 , 623203 , 429770 , 540595 , 531160 , 647942 , 585994 , 609682 , 702675 , 445751 , 556741 , 532666 , 614029 , 632563 , 598105 , 599988 , 617420 , 495217 , 565241 , 616617 , 604460 , 424523 , 447452 , 493963 , 434000 , 676087 , 676112 , 617437 , 627807 , 472299 , 591695 , 597170 , 707391 , 621612 , 538803 , 557236 );
Copy
4
2.98 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
419148
424523
428385
428408
429181
429770
434000
445751
447452
451565
459570
460606
466404
466412
469616
472299
472337
483550
489328
493235
493963
495217
496033
512830
516684
520733
522398
528361
530637
531105
531160
531560
532666
532755
537686
538803
540595
542831
556741
557236
559178
565241
565250
585994
591695
592034
597170
597999
598105
599988
604460
609682
614029
616617
617420
617437
621612
623203
627807
632020
632563
633435
634135
647942
666850
674994
676087
676112
702675
707391
714552
720047
732681
814394
]
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 (419148 , 424523 , 428385 , 428408 , 429181 , 429770 , 434000 , 445751 , 447452 , 451565 , 459570 , 460606 , 466404 , 466412 , 469616 , 472299 , 472337 , 483550 , 489328 , 493235 , 493963 , 495217 , 496033 , 512830 , 516684 , 520733 , 522398 , 528361 , 530637 , 531105 , 531160 , 531560 , 532666 , 532755 , 537686 , 538803 , 540595 , 542831 , 556741 , 557236 , 559178 , 565241 , 565250 , 585994 , 591695 , 592034 , 597170 , 597999 , 598105 , 599988 , 604460 , 609682 , 614029 , 616617 , 617420 , 617437 , 621612 , 623203 , 627807 , 632020 , 632563 , 633435 , 634135 , 647942 , 666850 , 674994 , 676087 , 676112 , 702675 , 707391 , 714552 , 720047 , 732681 , 814394 );
Copy
5
134.52 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
419148
424523
428385
428408
429181
429770
434000
445751
447452
451565
459570
460606
466404
466412
469616
472299
472337
483550
489328
493235
493963
495217
496033
512830
516684
520733
522398
528361
530637
531105
531160
531560
532666
532755
537686
538803
540595
542831
556741
557236
559178
565241
565250
585994
591695
592034
597170
597999
598105
599988
604460
609682
614029
616617
617420
617437
621612
623203
627807
632020
632563
633435
634135
647942
666850
674994
676087
676112
702675
707391
714552
720047
732681
814394
]
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 (419148 , 424523 , 428385 , 428408 , 429181 , 429770 , 434000 , 445751 , 447452 , 451565 , 459570 , 460606 , 466404 , 466412 , 469616 , 472299 , 472337 , 483550 , 489328 , 493235 , 493963 , 495217 , 496033 , 512830 , 516684 , 520733 , 522398 , 528361 , 530637 , 531105 , 531160 , 531560 , 532666 , 532755 , 537686 , 538803 , 540595 , 542831 , 556741 , 557236 , 559178 , 565241 , 565250 , 585994 , 591695 , 592034 , 597170 , 597999 , 598105 , 599988 , 604460 , 609682 , 614029 , 616617 , 617420 , 617437 , 621612 , 623203 , 627807 , 632020 , 632563 , 633435 , 634135 , 647942 , 666850 , 674994 , 676087 , 676112 , 702675 , 707391 , 714552 , 720047 , 732681 , 814394 );
Copy