3
15.33 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
640777
640785
724481
740596
718675
529211
508690
421704
537920
545539
553025
637047
588510
628407
473392
483596
415836
644973
566724
668688
645016
555269
572031
805144
805146
499772
565557
676090
675374
557526
601748
597516
628091
478267
484779
565946
584703
655358
619293
613951
628438
626616
607388
530026
468676
576089
563884
571005
647975
550679
622838
515186
670818
566688
622329
621691
627074
518270
513148
521989
523045
527199
521428
482525
474289
513949
524276
]
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 (640777 , 640785 , 724481 , 740596 , 718675 , 529211 , 508690 , 421704 , 537920 , 545539 , 553025 , 637047 , 588510 , 628407 , 473392 , 483596 , 415836 , 644973 , 566724 , 668688 , 645016 , 555269 , 572031 , 805144 , 805146 , 499772 , 565557 , 676090 , 675374 , 557526 , 601748 , 597516 , 628091 , 478267 , 484779 , 565946 , 584703 , 655358 , 619293 , 613951 , 628438 , 626616 , 607388 , 530026 , 468676 , 576089 , 563884 , 571005 , 647975 , 550679 , 622838 , 515186 , 670818 , 566688 , 622329 , 621691 , 627074 , 518270 , 513148 , 521989 , 523045 , 527199 , 521428 , 482525 , 474289 , 513949 , 524276 );
Copy
4
2.21 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
415836
421704
468676
473392
474289
478267
482525
483596
484779
499772
508690
513148
513949
515186
518270
521428
521989
523045
524276
527199
529211
530026
537920
545539
550679
553025
555269
557526
563884
565557
565946
566688
566724
571005
572031
576089
584703
588510
597516
601748
607388
613951
619293
621691
622329
622838
626616
627074
628091
628407
628438
637047
640777
640785
644973
645016
647975
655358
668688
670818
675374
676090
718675
724481
740596
805144
805146
]
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 (415836 , 421704 , 468676 , 473392 , 474289 , 478267 , 482525 , 483596 , 484779 , 499772 , 508690 , 513148 , 513949 , 515186 , 518270 , 521428 , 521989 , 523045 , 524276 , 527199 , 529211 , 530026 , 537920 , 545539 , 550679 , 553025 , 555269 , 557526 , 563884 , 565557 , 565946 , 566688 , 566724 , 571005 , 572031 , 576089 , 584703 , 588510 , 597516 , 601748 , 607388 , 613951 , 619293 , 621691 , 622329 , 622838 , 626616 , 627074 , 628091 , 628407 , 628438 , 637047 , 640777 , 640785 , 644973 , 645016 , 647975 , 655358 , 668688 , 670818 , 675374 , 676090 , 718675 , 724481 , 740596 , 805144 , 805146 );
Copy
5
98.84 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
415836
421704
468676
473392
474289
478267
482525
483596
484779
499772
508690
513148
513949
515186
518270
521428
521989
523045
524276
527199
529211
530026
537920
545539
550679
553025
555269
557526
563884
565557
565946
566688
566724
571005
572031
576089
584703
588510
597516
601748
607388
613951
619293
621691
622329
622838
626616
627074
628091
628407
628438
637047
640777
640785
644973
645016
647975
655358
668688
670818
675374
676090
718675
724481
740596
805144
805146
]
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 (415836 , 421704 , 468676 , 473392 , 474289 , 478267 , 482525 , 483596 , 484779 , 499772 , 508690 , 513148 , 513949 , 515186 , 518270 , 521428 , 521989 , 523045 , 524276 , 527199 , 529211 , 530026 , 537920 , 545539 , 550679 , 553025 , 555269 , 557526 , 563884 , 565557 , 565946 , 566688 , 566724 , 571005 , 572031 , 576089 , 584703 , 588510 , 597516 , 601748 , 607388 , 613951 , 619293 , 621691 , 622329 , 622838 , 626616 , 627074 , 628091 , 628407 , 628438 , 637047 , 640777 , 640785 , 644973 , 645016 , 647975 , 655358 , 668688 , 670818 , 675374 , 676090 , 718675 , 724481 , 740596 , 805144 , 805146 );
Copy