4
12.71 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
437448
500178
501772
501065
30454
389135
399352
414849
456982
533000
503460
519946
663381
559958
598774
626891
595519
601115
802819
417416
428961
408695
503215
485450
505955
518780
511599
482684
448310
532924
464557
561686
655838
668501
689622
599669
620797
599433
625262
424811
467544
470523
418740
419124
503277
503811
498594
422708
814837
487346
449891
492940
596908
610390
462812
427086
418922
475082
472169
520253
571819
586662
493219
527065
636209
643411
487514
]
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 (437448 , 500178 , 501772 , 501065 , 30454 , 389135 , 399352 , 414849 , 456982 , 533000 , 503460 , 519946 , 663381 , 559958 , 598774 , 626891 , 595519 , 601115 , 802819 , 417416 , 428961 , 408695 , 503215 , 485450 , 505955 , 518780 , 511599 , 482684 , 448310 , 532924 , 464557 , 561686 , 655838 , 668501 , 689622 , 599669 , 620797 , 599433 , 625262 , 424811 , 467544 , 470523 , 418740 , 419124 , 503277 , 503811 , 498594 , 422708 , 814837 , 487346 , 449891 , 492940 , 596908 , 610390 , 462812 , 427086 , 418922 , 475082 , 472169 , 520253 , 571819 , 586662 , 493219 , 527065 , 636209 , 643411 , 487514 );
Copy
5
2.32 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
30454
389135
399352
408695
414849
417416
418740
418922
419124
422708
424811
427086
428961
437448
448310
449891
456982
462812
464557
467544
470523
472169
475082
482684
485450
487346
487514
492940
493219
498594
500178
501065
501772
503215
503277
503460
503811
505955
511599
518780
519946
520253
527065
532924
533000
559958
561686
571819
586662
595519
596908
598774
599433
599669
601115
610390
620797
625262
626891
636209
643411
655838
663381
668501
689622
802819
814837
]
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 (30454 , 389135 , 399352 , 408695 , 414849 , 417416 , 418740 , 418922 , 419124 , 422708 , 424811 , 427086 , 428961 , 437448 , 448310 , 449891 , 456982 , 462812 , 464557 , 467544 , 470523 , 472169 , 475082 , 482684 , 485450 , 487346 , 487514 , 492940 , 493219 , 498594 , 500178 , 501065 , 501772 , 503215 , 503277 , 503460 , 503811 , 505955 , 511599 , 518780 , 519946 , 520253 , 527065 , 532924 , 533000 , 559958 , 561686 , 571819 , 586662 , 595519 , 596908 , 598774 , 599433 , 599669 , 601115 , 610390 , 620797 , 625262 , 626891 , 636209 , 643411 , 655838 , 663381 , 668501 , 689622 , 802819 , 814837 );
Copy
6
73.45 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
30454
389135
399352
408695
414849
417416
418740
418922
419124
422708
424811
427086
428961
437448
448310
449891
456982
462812
464557
467544
470523
472169
475082
482684
485450
487346
487514
492940
493219
498594
500178
501065
501772
503215
503277
503460
503811
505955
511599
518780
519946
520253
527065
532924
533000
559958
561686
571819
586662
595519
596908
598774
599433
599669
601115
610390
620797
625262
626891
636209
643411
655838
663381
668501
689622
802819
814837
]
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 (30454 , 389135 , 399352 , 408695 , 414849 , 417416 , 418740 , 418922 , 419124 , 422708 , 424811 , 427086 , 428961 , 437448 , 448310 , 449891 , 456982 , 462812 , 464557 , 467544 , 470523 , 472169 , 475082 , 482684 , 485450 , 487346 , 487514 , 492940 , 493219 , 498594 , 500178 , 501065 , 501772 , 503215 , 503277 , 503460 , 503811 , 505955 , 511599 , 518780 , 519946 , 520253 , 527065 , 532924 , 533000 , 559958 , 561686 , 571819 , 586662 , 595519 , 596908 , 598774 , 599433 , 599669 , 601115 , 610390 , 620797 , 625262 , 626891 , 636209 , 643411 , 655838 , 663381 , 668501 , 689622 , 802819 , 814837 );
Copy