3
15.02 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
504768
572621
559129
547306
572594
549968
547859
541688
549296
636268
383222
545944
549214
528435
542193
605345
538848
541631
598486
570604
762324
444151
484449
549371
561028
571679
621705
624451
782711
428651
541804
391745
544529
584712
560924
554784
544478
576638
576723
554205
574258
590966
540792
621992
559155
493015
544472
550329
566702
502283
403789
560204
618534
531083
554787
614745
470913
521637
577326
620699
426903
483940
584644
446431
522382
560205
524276
]
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 (504768 , 572621 , 559129 , 547306 , 572594 , 549968 , 547859 , 541688 , 549296 , 636268 , 383222 , 545944 , 549214 , 528435 , 542193 , 605345 , 538848 , 541631 , 598486 , 570604 , 762324 , 444151 , 484449 , 549371 , 561028 , 571679 , 621705 , 624451 , 782711 , 428651 , 541804 , 391745 , 544529 , 584712 , 560924 , 554784 , 544478 , 576638 , 576723 , 554205 , 574258 , 590966 , 540792 , 621992 , 559155 , 493015 , 544472 , 550329 , 566702 , 502283 , 403789 , 560204 , 618534 , 531083 , 554787 , 614745 , 470913 , 521637 , 577326 , 620699 , 426903 , 483940 , 584644 , 446431 , 522382 , 560205 , 524276 );
Copy
4
5.00 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
383222
391745
403789
426903
428651
444151
446431
470913
483940
484449
493015
502283
504768
521637
522382
524276
528435
531083
538848
540792
541631
541688
541804
542193
544472
544478
544529
545944
547306
547859
549214
549296
549371
549968
550329
554205
554784
554787
559129
559155
560204
560205
560924
561028
566702
570604
571679
572594
572621
574258
576638
576723
577326
584644
584712
590966
598486
605345
614745
618534
620699
621705
621992
624451
636268
762324
782711
]
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 (383222 , 391745 , 403789 , 426903 , 428651 , 444151 , 446431 , 470913 , 483940 , 484449 , 493015 , 502283 , 504768 , 521637 , 522382 , 524276 , 528435 , 531083 , 538848 , 540792 , 541631 , 541688 , 541804 , 542193 , 544472 , 544478 , 544529 , 545944 , 547306 , 547859 , 549214 , 549296 , 549371 , 549968 , 550329 , 554205 , 554784 , 554787 , 559129 , 559155 , 560204 , 560205 , 560924 , 561028 , 566702 , 570604 , 571679 , 572594 , 572621 , 574258 , 576638 , 576723 , 577326 , 584644 , 584712 , 590966 , 598486 , 605345 , 614745 , 618534 , 620699 , 621705 , 621992 , 624451 , 636268 , 762324 , 782711 );
Copy
5
74.49 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
383222
391745
403789
426903
428651
444151
446431
470913
483940
484449
493015
502283
504768
521637
522382
524276
528435
531083
538848
540792
541631
541688
541804
542193
544472
544478
544529
545944
547306
547859
549214
549296
549371
549968
550329
554205
554784
554787
559129
559155
560204
560205
560924
561028
566702
570604
571679
572594
572621
574258
576638
576723
577326
584644
584712
590966
598486
605345
614745
618534
620699
621705
621992
624451
636268
762324
782711
]
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 (383222 , 391745 , 403789 , 426903 , 428651 , 444151 , 446431 , 470913 , 483940 , 484449 , 493015 , 502283 , 504768 , 521637 , 522382 , 524276 , 528435 , 531083 , 538848 , 540792 , 541631 , 541688 , 541804 , 542193 , 544472 , 544478 , 544529 , 545944 , 547306 , 547859 , 549214 , 549296 , 549371 , 549968 , 550329 , 554205 , 554784 , 554787 , 559129 , 559155 , 560204 , 560205 , 560924 , 561028 , 566702 , 570604 , 571679 , 572594 , 572621 , 574258 , 576638 , 576723 , 577326 , 584644 , 584712 , 590966 , 598486 , 605345 , 614745 , 618534 , 620699 , 621705 , 621992 , 624451 , 636268 , 762324 , 782711 );
Copy