3
11.67 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
826635
819886
823851
649271
768300
396356
603280
808846
773886
768968
593611
539574
656538
687847
633981
771937
427488
645667
536145
609291
643001
710074
417154
484004
781136
463497
469768
627237
793081
449108
449502
449517
505539
524824
676564
781365
813034
479696
543931
563790
676612
794384
441584
466898
419990
454062
456019
495000
510064
541068
708263
631745
429685
449459
584567
606626
450413
475309
451145
458464
463363
566091
584563
791926
458985
523242
517028
594179
538768
594353
]
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 (826635 , 819886 , 823851 , 649271 , 768300 , 396356 , 603280 , 808846 , 773886 , 768968 , 593611 , 539574 , 656538 , 687847 , 633981 , 771937 , 427488 , 645667 , 536145 , 609291 , 643001 , 710074 , 417154 , 484004 , 781136 , 463497 , 469768 , 627237 , 793081 , 449108 , 449502 , 449517 , 505539 , 524824 , 676564 , 781365 , 813034 , 479696 , 543931 , 563790 , 676612 , 794384 , 441584 , 466898 , 419990 , 454062 , 456019 , 495000 , 510064 , 541068 , 708263 , 631745 , 429685 , 449459 , 584567 , 606626 , 450413 , 475309 , 451145 , 458464 , 463363 , 566091 , 584563 , 791926 , 458985 , 523242 , 517028 , 594179 , 538768 , 594353 );
Copy
4
3.14 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
396356
417154
419990
427488
429685
441584
449108
449459
449502
449517
450413
451145
454062
456019
458464
458985
463363
463497
466898
469768
475309
479696
484004
495000
505539
510064
517028
523242
524824
536145
538768
539574
541068
543931
563790
566091
584563
584567
593611
594179
594353
603280
606626
609291
627237
631745
633981
643001
645667
649271
656538
676564
676612
687847
708263
710074
768300
768968
771937
773886
781136
781365
791926
793081
794384
808846
813034
819886
823851
826635
]
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 (396356 , 417154 , 419990 , 427488 , 429685 , 441584 , 449108 , 449459 , 449502 , 449517 , 450413 , 451145 , 454062 , 456019 , 458464 , 458985 , 463363 , 463497 , 466898 , 469768 , 475309 , 479696 , 484004 , 495000 , 505539 , 510064 , 517028 , 523242 , 524824 , 536145 , 538768 , 539574 , 541068 , 543931 , 563790 , 566091 , 584563 , 584567 , 593611 , 594179 , 594353 , 603280 , 606626 , 609291 , 627237 , 631745 , 633981 , 643001 , 645667 , 649271 , 656538 , 676564 , 676612 , 687847 , 708263 , 710074 , 768300 , 768968 , 771937 , 773886 , 781136 , 781365 , 791926 , 793081 , 794384 , 808846 , 813034 , 819886 , 823851 , 826635 );
Copy
5
84.85 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
396356
417154
419990
427488
429685
441584
449108
449459
449502
449517
450413
451145
454062
456019
458464
458985
463363
463497
466898
469768
475309
479696
484004
495000
505539
510064
517028
523242
524824
536145
538768
539574
541068
543931
563790
566091
584563
584567
593611
594179
594353
603280
606626
609291
627237
631745
633981
643001
645667
649271
656538
676564
676612
687847
708263
710074
768300
768968
771937
773886
781136
781365
791926
793081
794384
808846
813034
819886
823851
826635
]
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 (396356 , 417154 , 419990 , 427488 , 429685 , 441584 , 449108 , 449459 , 449502 , 449517 , 450413 , 451145 , 454062 , 456019 , 458464 , 458985 , 463363 , 463497 , 466898 , 469768 , 475309 , 479696 , 484004 , 495000 , 505539 , 510064 , 517028 , 523242 , 524824 , 536145 , 538768 , 539574 , 541068 , 543931 , 563790 , 566091 , 584563 , 584567 , 593611 , 594179 , 594353 , 603280 , 606626 , 609291 , 627237 , 631745 , 633981 , 643001 , 645667 , 649271 , 656538 , 676564 , 676612 , 687847 , 708263 , 710074 , 768300 , 768968 , 771937 , 773886 , 781136 , 781365 , 791926 , 793081 , 794384 , 808846 , 813034 , 819886 , 823851 , 826635 );
Copy