3
7.95 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
546477
395534
626661
587090
97769
646625
749006
760554
213118
797489
21731
655259
689391
731492
636121
797329
794356
420072
616038
496941
460572
814398
268873
392465
435872
518420
541460
561881
724103
766199
461772
382770
443624
576042
799722
805005
402601
500638
512031
570674
401031
562343
566764
573476
591514
596348
479272
502411
443516
568643
759329
803596
451003
525760
475378
506863
605804
567024
619651
606267
618931
439773
469355
561082
685469
]
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 (546477 , 395534 , 626661 , 587090 , 97769 , 646625 , 749006 , 760554 , 213118 , 797489 , 21731 , 655259 , 689391 , 731492 , 636121 , 797329 , 794356 , 420072 , 616038 , 496941 , 460572 , 814398 , 268873 , 392465 , 435872 , 518420 , 541460 , 561881 , 724103 , 766199 , 461772 , 382770 , 443624 , 576042 , 799722 , 805005 , 402601 , 500638 , 512031 , 570674 , 401031 , 562343 , 566764 , 573476 , 591514 , 596348 , 479272 , 502411 , 443516 , 568643 , 759329 , 803596 , 451003 , 525760 , 475378 , 506863 , 605804 , 567024 , 619651 , 606267 , 618931 , 439773 , 469355 , 561082 , 685469 );
Copy
4
1.95 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
21731
97769
213118
268873
382770
392465
395534
401031
402601
420072
435872
439773
443516
443624
451003
460572
461772
469355
475378
479272
496941
500638
502411
506863
512031
518420
525760
541460
546477
561082
561881
562343
566764
567024
568643
570674
573476
576042
587090
591514
596348
605804
606267
616038
618931
619651
626661
636121
646625
655259
685469
689391
724103
731492
749006
759329
760554
766199
794356
797329
797489
799722
803596
805005
814398
]
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 (21731 , 97769 , 213118 , 268873 , 382770 , 392465 , 395534 , 401031 , 402601 , 420072 , 435872 , 439773 , 443516 , 443624 , 451003 , 460572 , 461772 , 469355 , 475378 , 479272 , 496941 , 500638 , 502411 , 506863 , 512031 , 518420 , 525760 , 541460 , 546477 , 561082 , 561881 , 562343 , 566764 , 567024 , 568643 , 570674 , 573476 , 576042 , 587090 , 591514 , 596348 , 605804 , 606267 , 616038 , 618931 , 619651 , 626661 , 636121 , 646625 , 655259 , 685469 , 689391 , 724103 , 731492 , 749006 , 759329 , 760554 , 766199 , 794356 , 797329 , 797489 , 799722 , 803596 , 805005 , 814398 );
Copy
5
84.42 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
21731
97769
213118
268873
382770
392465
395534
401031
402601
420072
435872
439773
443516
443624
451003
460572
461772
469355
475378
479272
496941
500638
502411
506863
512031
518420
525760
541460
546477
561082
561881
562343
566764
567024
568643
570674
573476
576042
587090
591514
596348
605804
606267
616038
618931
619651
626661
636121
646625
655259
685469
689391
724103
731492
749006
759329
760554
766199
794356
797329
797489
799722
803596
805005
814398
]
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 (21731 , 97769 , 213118 , 268873 , 382770 , 392465 , 395534 , 401031 , 402601 , 420072 , 435872 , 439773 , 443516 , 443624 , 451003 , 460572 , 461772 , 469355 , 475378 , 479272 , 496941 , 500638 , 502411 , 506863 , 512031 , 518420 , 525760 , 541460 , 546477 , 561082 , 561881 , 562343 , 566764 , 567024 , 568643 , 570674 , 573476 , 576042 , 587090 , 591514 , 596348 , 605804 , 606267 , 616038 , 618931 , 619651 , 626661 , 636121 , 646625 , 655259 , 685469 , 689391 , 724103 , 731492 , 749006 , 759329 , 760554 , 766199 , 794356 , 797329 , 797489 , 799722 , 803596 , 805005 , 814398 );
Copy