3
17.29 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
706889
696115
420304
390650
463982
578198
434709
539329
487008
562418
571131
552569
588430
587298
802291
454565
459476
813822
819271
562973
615919
630670
485400
510425
485689
523622
554793
757724
485763
464023
515572
426294
492462
781857
464017
485766
491436
509225
484373
453408
517697
573196
420178
466992
525992
443134
469285
455979
491860
494325
595097
463973
476260
526963
563732
584366
590418
592979
428174
582694
476339
536637
489868
523169
407442
662896
716811
515964
459474
506057
444918
555055
562423
]
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 (706889 , 696115 , 420304 , 390650 , 463982 , 578198 , 434709 , 539329 , 487008 , 562418 , 571131 , 552569 , 588430 , 587298 , 802291 , 454565 , 459476 , 813822 , 819271 , 562973 , 615919 , 630670 , 485400 , 510425 , 485689 , 523622 , 554793 , 757724 , 485763 , 464023 , 515572 , 426294 , 492462 , 781857 , 464017 , 485766 , 491436 , 509225 , 484373 , 453408 , 517697 , 573196 , 420178 , 466992 , 525992 , 443134 , 469285 , 455979 , 491860 , 494325 , 595097 , 463973 , 476260 , 526963 , 563732 , 584366 , 590418 , 592979 , 428174 , 582694 , 476339 , 536637 , 489868 , 523169 , 407442 , 662896 , 716811 , 515964 , 459474 , 506057 , 444918 , 555055 , 562423 );
Copy
4
2.54 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
390650
407442
420178
420304
426294
428174
434709
443134
444918
453408
454565
455979
459474
459476
463973
463982
464017
464023
466992
469285
476260
476339
484373
485400
485689
485763
485766
487008
489868
491436
491860
492462
494325
506057
509225
510425
515572
515964
517697
523169
523622
525992
526963
536637
539329
552569
554793
555055
562418
562423
562973
563732
571131
573196
578198
582694
584366
587298
588430
590418
592979
595097
615919
630670
662896
696115
706889
716811
757724
781857
802291
813822
819271
]
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 (390650 , 407442 , 420178 , 420304 , 426294 , 428174 , 434709 , 443134 , 444918 , 453408 , 454565 , 455979 , 459474 , 459476 , 463973 , 463982 , 464017 , 464023 , 466992 , 469285 , 476260 , 476339 , 484373 , 485400 , 485689 , 485763 , 485766 , 487008 , 489868 , 491436 , 491860 , 492462 , 494325 , 506057 , 509225 , 510425 , 515572 , 515964 , 517697 , 523169 , 523622 , 525992 , 526963 , 536637 , 539329 , 552569 , 554793 , 555055 , 562418 , 562423 , 562973 , 563732 , 571131 , 573196 , 578198 , 582694 , 584366 , 587298 , 588430 , 590418 , 592979 , 595097 , 615919 , 630670 , 662896 , 696115 , 706889 , 716811 , 757724 , 781857 , 802291 , 813822 , 819271 );
Copy
5
297.59 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
390650
407442
420178
420304
426294
428174
434709
443134
444918
453408
454565
455979
459474
459476
463973
463982
464017
464023
466992
469285
476260
476339
484373
485400
485689
485763
485766
487008
489868
491436
491860
492462
494325
506057
509225
510425
515572
515964
517697
523169
523622
525992
526963
536637
539329
552569
554793
555055
562418
562423
562973
563732
571131
573196
578198
582694
584366
587298
588430
590418
592979
595097
615919
630670
662896
696115
706889
716811
757724
781857
802291
813822
819271
]
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 (390650 , 407442 , 420178 , 420304 , 426294 , 428174 , 434709 , 443134 , 444918 , 453408 , 454565 , 455979 , 459474 , 459476 , 463973 , 463982 , 464017 , 464023 , 466992 , 469285 , 476260 , 476339 , 484373 , 485400 , 485689 , 485763 , 485766 , 487008 , 489868 , 491436 , 491860 , 492462 , 494325 , 506057 , 509225 , 510425 , 515572 , 515964 , 517697 , 523169 , 523622 , 525992 , 526963 , 536637 , 539329 , 552569 , 554793 , 555055 , 562418 , 562423 , 562973 , 563732 , 571131 , 573196 , 578198 , 582694 , 584366 , 587298 , 588430 , 590418 , 592979 , 595097 , 615919 , 630670 , 662896 , 696115 , 706889 , 716811 , 757724 , 781857 , 802291 , 813822 , 819271 );
Copy