3
12.50 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
704111
513977
590977
792721
585229
792731
798759
406935
782554
402631
639024
619322
630411
669270
796327
635201
574362
705999
550553
526613
223663
814374
484241
703825
704991
710363
509836
553749
788590
809004
419246
813581
595147
788802
524626
584334
803824
739985
542987
806910
528452
759731
714927
639798
578731
613690
824733
516718
493443
429860
641386
531455
578766
785233
434455
814263
824892
470496
607717
641387
824953
419628
507221
516782
394514
639060
]
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 (704111 , 513977 , 590977 , 792721 , 585229 , 792731 , 798759 , 406935 , 782554 , 402631 , 639024 , 619322 , 630411 , 669270 , 796327 , 635201 , 574362 , 705999 , 550553 , 526613 , 223663 , 814374 , 484241 , 703825 , 704991 , 710363 , 509836 , 553749 , 788590 , 809004 , 419246 , 813581 , 595147 , 788802 , 524626 , 584334 , 803824 , 739985 , 542987 , 806910 , 528452 , 759731 , 714927 , 639798 , 578731 , 613690 , 824733 , 516718 , 493443 , 429860 , 641386 , 531455 , 578766 , 785233 , 434455 , 814263 , 824892 , 470496 , 607717 , 641387 , 824953 , 419628 , 507221 , 516782 , 394514 , 639060 );
Copy
4
2.45 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
223663
394514
402631
406935
419246
419628
429860
434455
470496
484241
493443
507221
509836
513977
516718
516782
524626
526613
528452
531455
542987
550553
553749
574362
578731
578766
584334
585229
590977
595147
607717
613690
619322
630411
635201
639024
639060
639798
641386
641387
669270
703825
704111
704991
705999
710363
714927
739985
759731
782554
785233
788590
788802
792721
792731
796327
798759
803824
806910
809004
813581
814263
814374
824733
824892
824953
]
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 (223663 , 394514 , 402631 , 406935 , 419246 , 419628 , 429860 , 434455 , 470496 , 484241 , 493443 , 507221 , 509836 , 513977 , 516718 , 516782 , 524626 , 526613 , 528452 , 531455 , 542987 , 550553 , 553749 , 574362 , 578731 , 578766 , 584334 , 585229 , 590977 , 595147 , 607717 , 613690 , 619322 , 630411 , 635201 , 639024 , 639060 , 639798 , 641386 , 641387 , 669270 , 703825 , 704111 , 704991 , 705999 , 710363 , 714927 , 739985 , 759731 , 782554 , 785233 , 788590 , 788802 , 792721 , 792731 , 796327 , 798759 , 803824 , 806910 , 809004 , 813581 , 814263 , 814374 , 824733 , 824892 , 824953 );
Copy
5
128.68 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
223663
394514
402631
406935
419246
419628
429860
434455
470496
484241
493443
507221
509836
513977
516718
516782
524626
526613
528452
531455
542987
550553
553749
574362
578731
578766
584334
585229
590977
595147
607717
613690
619322
630411
635201
639024
639060
639798
641386
641387
669270
703825
704111
704991
705999
710363
714927
739985
759731
782554
785233
788590
788802
792721
792731
796327
798759
803824
806910
809004
813581
814263
814374
824733
824892
824953
]
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 (223663 , 394514 , 402631 , 406935 , 419246 , 419628 , 429860 , 434455 , 470496 , 484241 , 493443 , 507221 , 509836 , 513977 , 516718 , 516782 , 524626 , 526613 , 528452 , 531455 , 542987 , 550553 , 553749 , 574362 , 578731 , 578766 , 584334 , 585229 , 590977 , 595147 , 607717 , 613690 , 619322 , 630411 , 635201 , 639024 , 639060 , 639798 , 641386 , 641387 , 669270 , 703825 , 704111 , 704991 , 705999 , 710363 , 714927 , 739985 , 759731 , 782554 , 785233 , 788590 , 788802 , 792721 , 792731 , 796327 , 798759 , 803824 , 806910 , 809004 , 813581 , 814263 , 814374 , 824733 , 824892 , 824953 );
Copy