3
10.34 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
811439
429239
552273
760729
716144
724202
21626
810467
606169
811094
663907
665504
672029
597130
778312
717188
740716
707939
824400
753397
820092
808388
799111
817366
797105
756292
818768
814154
696240
710310
800656
726071
589966
755132
816962
817365
808947
768697
808958
482522
617385
735893
468264
574558
620147
431337
408759
568330
800662
737992
387915
382353
570963
744968
493100
574145
474847
667464
808668
45799
455264
532797
591067
491411
515644
585969
490894
509988
490926
]
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 (811439 , 429239 , 552273 , 760729 , 716144 , 724202 , 21626 , 810467 , 606169 , 811094 , 663907 , 665504 , 672029 , 597130 , 778312 , 717188 , 740716 , 707939 , 824400 , 753397 , 820092 , 808388 , 799111 , 817366 , 797105 , 756292 , 818768 , 814154 , 696240 , 710310 , 800656 , 726071 , 589966 , 755132 , 816962 , 817365 , 808947 , 768697 , 808958 , 482522 , 617385 , 735893 , 468264 , 574558 , 620147 , 431337 , 408759 , 568330 , 800662 , 737992 , 387915 , 382353 , 570963 , 744968 , 493100 , 574145 , 474847 , 667464 , 808668 , 45799 , 455264 , 532797 , 591067 , 491411 , 515644 , 585969 , 490894 , 509988 , 490926 );
Copy
4
3.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
21626
45799
382353
387915
408759
429239
431337
455264
468264
474847
482522
490894
490926
491411
493100
509988
515644
532797
552273
568330
570963
574145
574558
585969
589966
591067
597130
606169
617385
620147
663907
665504
667464
672029
696240
707939
710310
716144
717188
724202
726071
735893
737992
740716
744968
753397
755132
756292
760729
768697
778312
797105
799111
800656
800662
808388
808668
808947
808958
810467
811094
811439
814154
816962
817365
817366
818768
820092
824400
]
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 (21626 , 45799 , 382353 , 387915 , 408759 , 429239 , 431337 , 455264 , 468264 , 474847 , 482522 , 490894 , 490926 , 491411 , 493100 , 509988 , 515644 , 532797 , 552273 , 568330 , 570963 , 574145 , 574558 , 585969 , 589966 , 591067 , 597130 , 606169 , 617385 , 620147 , 663907 , 665504 , 667464 , 672029 , 696240 , 707939 , 710310 , 716144 , 717188 , 724202 , 726071 , 735893 , 737992 , 740716 , 744968 , 753397 , 755132 , 756292 , 760729 , 768697 , 778312 , 797105 , 799111 , 800656 , 800662 , 808388 , 808668 , 808947 , 808958 , 810467 , 811094 , 811439 , 814154 , 816962 , 817365 , 817366 , 818768 , 820092 , 824400 );
Copy
5
80.91 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
21626
45799
382353
387915
408759
429239
431337
455264
468264
474847
482522
490894
490926
491411
493100
509988
515644
532797
552273
568330
570963
574145
574558
585969
589966
591067
597130
606169
617385
620147
663907
665504
667464
672029
696240
707939
710310
716144
717188
724202
726071
735893
737992
740716
744968
753397
755132
756292
760729
768697
778312
797105
799111
800656
800662
808388
808668
808947
808958
810467
811094
811439
814154
816962
817365
817366
818768
820092
824400
]
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 (21626 , 45799 , 382353 , 387915 , 408759 , 429239 , 431337 , 455264 , 468264 , 474847 , 482522 , 490894 , 490926 , 491411 , 493100 , 509988 , 515644 , 532797 , 552273 , 568330 , 570963 , 574145 , 574558 , 585969 , 589966 , 591067 , 597130 , 606169 , 617385 , 620147 , 663907 , 665504 , 667464 , 672029 , 696240 , 707939 , 710310 , 716144 , 717188 , 724202 , 726071 , 735893 , 737992 , 740716 , 744968 , 753397 , 755132 , 756292 , 760729 , 768697 , 778312 , 797105 , 799111 , 800656 , 800662 , 808388 , 808668 , 808947 , 808958 , 810467 , 811094 , 811439 , 814154 , 816962 , 817365 , 817366 , 818768 , 820092 , 824400 );
Copy