3
19.03 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
601655
476254
508554
518622
598437
599478
584105
655714
658433
662435
653541
596526
621515
594869
613970
599534
520145
684440
618094
619308
546913
567053
654503
655322
655609
605862
611289
617342
625533
591839
599803
620009
628277
610303
597550
618334
629021
524524
571561
653544
573615
589450
618924
591249
604873
618476
623337
657402
620001
586431
597488
624095
540792
556524
574527
653560
549736
613394
599191
622778
484632
654109
590404
617004
629445
600060
561699
600035
]
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 (601655 , 476254 , 508554 , 518622 , 598437 , 599478 , 584105 , 655714 , 658433 , 662435 , 653541 , 596526 , 621515 , 594869 , 613970 , 599534 , 520145 , 684440 , 618094 , 619308 , 546913 , 567053 , 654503 , 655322 , 655609 , 605862 , 611289 , 617342 , 625533 , 591839 , 599803 , 620009 , 628277 , 610303 , 597550 , 618334 , 629021 , 524524 , 571561 , 653544 , 573615 , 589450 , 618924 , 591249 , 604873 , 618476 , 623337 , 657402 , 620001 , 586431 , 597488 , 624095 , 540792 , 556524 , 574527 , 653560 , 549736 , 613394 , 599191 , 622778 , 484632 , 654109 , 590404 , 617004 , 629445 , 600060 , 561699 , 600035 );
Copy
4
2.24 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
476254
484632
508554
518622
520145
524524
540792
546913
549736
556524
561699
567053
571561
573615
574527
584105
586431
589450
590404
591249
591839
594869
596526
597488
597550
598437
599191
599478
599534
599803
600035
600060
601655
604873
605862
610303
611289
613394
613970
617004
617342
618094
618334
618476
618924
619308
620001
620009
621515
622778
623337
624095
625533
628277
629021
629445
653541
653544
653560
654109
654503
655322
655609
655714
657402
658433
662435
684440
]
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 (476254 , 484632 , 508554 , 518622 , 520145 , 524524 , 540792 , 546913 , 549736 , 556524 , 561699 , 567053 , 571561 , 573615 , 574527 , 584105 , 586431 , 589450 , 590404 , 591249 , 591839 , 594869 , 596526 , 597488 , 597550 , 598437 , 599191 , 599478 , 599534 , 599803 , 600035 , 600060 , 601655 , 604873 , 605862 , 610303 , 611289 , 613394 , 613970 , 617004 , 617342 , 618094 , 618334 , 618476 , 618924 , 619308 , 620001 , 620009 , 621515 , 622778 , 623337 , 624095 , 625533 , 628277 , 629021 , 629445 , 653541 , 653544 , 653560 , 654109 , 654503 , 655322 , 655609 , 655714 , 657402 , 658433 , 662435 , 684440 );
Copy
5
92.95 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
476254
484632
508554
518622
520145
524524
540792
546913
549736
556524
561699
567053
571561
573615
574527
584105
586431
589450
590404
591249
591839
594869
596526
597488
597550
598437
599191
599478
599534
599803
600035
600060
601655
604873
605862
610303
611289
613394
613970
617004
617342
618094
618334
618476
618924
619308
620001
620009
621515
622778
623337
624095
625533
628277
629021
629445
653541
653544
653560
654109
654503
655322
655609
655714
657402
658433
662435
684440
]
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 (476254 , 484632 , 508554 , 518622 , 520145 , 524524 , 540792 , 546913 , 549736 , 556524 , 561699 , 567053 , 571561 , 573615 , 574527 , 584105 , 586431 , 589450 , 590404 , 591249 , 591839 , 594869 , 596526 , 597488 , 597550 , 598437 , 599191 , 599478 , 599534 , 599803 , 600035 , 600060 , 601655 , 604873 , 605862 , 610303 , 611289 , 613394 , 613970 , 617004 , 617342 , 618094 , 618334 , 618476 , 618924 , 619308 , 620001 , 620009 , 621515 , 622778 , 623337 , 624095 , 625533 , 628277 , 629021 , 629445 , 653541 , 653544 , 653560 , 654109 , 654503 , 655322 , 655609 , 655714 , 657402 , 658433 , 662435 , 684440 );
Copy