3
10.58 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
820110
758334
45853
592267
551977
821890
394136
796294
537116
687325
446643
564221
383478
675437
469716
658946
725520
441852
714374
675690
744466
559781
796448
526187
603372
608103
782007
383469
821877
675053
525822
548876
675065
470962
386759
470156
675654
505024
463603
508226
581501
601135
742323
749060
426429
470933
675104
615431
675660
791589
470956
491961
425636
511436
675657
441524
591926
758771
675696
496793
463608
568582
447877
444071
436598
540769
510443
532095
549742
425356
559951
565628
]
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 (820110 , 758334 , 45853 , 592267 , 551977 , 821890 , 394136 , 796294 , 537116 , 687325 , 446643 , 564221 , 383478 , 675437 , 469716 , 658946 , 725520 , 441852 , 714374 , 675690 , 744466 , 559781 , 796448 , 526187 , 603372 , 608103 , 782007 , 383469 , 821877 , 675053 , 525822 , 548876 , 675065 , 470962 , 386759 , 470156 , 675654 , 505024 , 463603 , 508226 , 581501 , 601135 , 742323 , 749060 , 426429 , 470933 , 675104 , 615431 , 675660 , 791589 , 470956 , 491961 , 425636 , 511436 , 675657 , 441524 , 591926 , 758771 , 675696 , 496793 , 463608 , 568582 , 447877 , 444071 , 436598 , 540769 , 510443 , 532095 , 549742 , 425356 , 559951 , 565628 );
Copy
4
2.61 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
45853
383469
383478
386759
394136
425356
425636
426429
436598
441524
441852
444071
446643
447877
463603
463608
469716
470156
470933
470956
470962
491961
496793
505024
508226
510443
511436
525822
526187
532095
537116
540769
548876
549742
551977
559781
559951
564221
565628
568582
581501
591926
592267
601135
603372
608103
615431
658946
675053
675065
675104
675437
675654
675657
675660
675690
675696
687325
714374
725520
742323
744466
749060
758334
758771
782007
791589
796294
796448
820110
821877
821890
]
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 (45853 , 383469 , 383478 , 386759 , 394136 , 425356 , 425636 , 426429 , 436598 , 441524 , 441852 , 444071 , 446643 , 447877 , 463603 , 463608 , 469716 , 470156 , 470933 , 470956 , 470962 , 491961 , 496793 , 505024 , 508226 , 510443 , 511436 , 525822 , 526187 , 532095 , 537116 , 540769 , 548876 , 549742 , 551977 , 559781 , 559951 , 564221 , 565628 , 568582 , 581501 , 591926 , 592267 , 601135 , 603372 , 608103 , 615431 , 658946 , 675053 , 675065 , 675104 , 675437 , 675654 , 675657 , 675660 , 675690 , 675696 , 687325 , 714374 , 725520 , 742323 , 744466 , 749060 , 758334 , 758771 , 782007 , 791589 , 796294 , 796448 , 820110 , 821877 , 821890 );
Copy
5
84.07 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
45853
383469
383478
386759
394136
425356
425636
426429
436598
441524
441852
444071
446643
447877
463603
463608
469716
470156
470933
470956
470962
491961
496793
505024
508226
510443
511436
525822
526187
532095
537116
540769
548876
549742
551977
559781
559951
564221
565628
568582
581501
591926
592267
601135
603372
608103
615431
658946
675053
675065
675104
675437
675654
675657
675660
675690
675696
687325
714374
725520
742323
744466
749060
758334
758771
782007
791589
796294
796448
820110
821877
821890
]
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 (45853 , 383469 , 383478 , 386759 , 394136 , 425356 , 425636 , 426429 , 436598 , 441524 , 441852 , 444071 , 446643 , 447877 , 463603 , 463608 , 469716 , 470156 , 470933 , 470956 , 470962 , 491961 , 496793 , 505024 , 508226 , 510443 , 511436 , 525822 , 526187 , 532095 , 537116 , 540769 , 548876 , 549742 , 551977 , 559781 , 559951 , 564221 , 565628 , 568582 , 581501 , 591926 , 592267 , 601135 , 603372 , 608103 , 615431 , 658946 , 675053 , 675065 , 675104 , 675437 , 675654 , 675657 , 675660 , 675690 , 675696 , 687325 , 714374 , 725520 , 742323 , 744466 , 749060 , 758334 , 758771 , 782007 , 791589 , 796294 , 796448 , 820110 , 821877 , 821890 );
Copy