3
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
586959
620319
595854
727400
776638
426806
819921
583674
572037
790888
742404
599160
817189
421201
523384
427086
517125
825779
607170
595507
555709
722107
511249
493127
671492
783507
466124
460739
471579
799596
501991
712777
630825
617613
510589
464107
503155
584797
551547
719781
689007
429188
505607
448350
693235
569970
579534
506222
516492
453438
552372
662556
528921
525019
527267
568322
578381
586289
513521
527215
558543
621087
636209
529524
413806
525276
521687
]
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 (586959 , 620319 , 595854 , 727400 , 776638 , 426806 , 819921 , 583674 , 572037 , 790888 , 742404 , 599160 , 817189 , 421201 , 523384 , 427086 , 517125 , 825779 , 607170 , 595507 , 555709 , 722107 , 511249 , 493127 , 671492 , 783507 , 466124 , 460739 , 471579 , 799596 , 501991 , 712777 , 630825 , 617613 , 510589 , 464107 , 503155 , 584797 , 551547 , 719781 , 689007 , 429188 , 505607 , 448350 , 693235 , 569970 , 579534 , 506222 , 516492 , 453438 , 552372 , 662556 , 528921 , 525019 , 527267 , 568322 , 578381 , 586289 , 513521 , 527215 , 558543 , 621087 , 636209 , 529524 , 413806 , 525276 , 521687 );
Copy
4
2.72 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
413806
421201
426806
427086
429188
448350
453438
460739
464107
466124
471579
493127
501991
503155
505607
506222
510589
511249
513521
516492
517125
521687
523384
525019
525276
527215
527267
528921
529524
551547
552372
555709
558543
568322
569970
572037
578381
579534
583674
584797
586289
586959
595507
595854
599160
607170
617613
620319
621087
630825
636209
662556
671492
689007
693235
712777
719781
722107
727400
742404
776638
783507
790888
799596
817189
819921
825779
]
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 (413806 , 421201 , 426806 , 427086 , 429188 , 448350 , 453438 , 460739 , 464107 , 466124 , 471579 , 493127 , 501991 , 503155 , 505607 , 506222 , 510589 , 511249 , 513521 , 516492 , 517125 , 521687 , 523384 , 525019 , 525276 , 527215 , 527267 , 528921 , 529524 , 551547 , 552372 , 555709 , 558543 , 568322 , 569970 , 572037 , 578381 , 579534 , 583674 , 584797 , 586289 , 586959 , 595507 , 595854 , 599160 , 607170 , 617613 , 620319 , 621087 , 630825 , 636209 , 662556 , 671492 , 689007 , 693235 , 712777 , 719781 , 722107 , 727400 , 742404 , 776638 , 783507 , 790888 , 799596 , 817189 , 819921 , 825779 );
Copy
5
96.89 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
413806
421201
426806
427086
429188
448350
453438
460739
464107
466124
471579
493127
501991
503155
505607
506222
510589
511249
513521
516492
517125
521687
523384
525019
525276
527215
527267
528921
529524
551547
552372
555709
558543
568322
569970
572037
578381
579534
583674
584797
586289
586959
595507
595854
599160
607170
617613
620319
621087
630825
636209
662556
671492
689007
693235
712777
719781
722107
727400
742404
776638
783507
790888
799596
817189
819921
825779
]
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 (413806 , 421201 , 426806 , 427086 , 429188 , 448350 , 453438 , 460739 , 464107 , 466124 , 471579 , 493127 , 501991 , 503155 , 505607 , 506222 , 510589 , 511249 , 513521 , 516492 , 517125 , 521687 , 523384 , 525019 , 525276 , 527215 , 527267 , 528921 , 529524 , 551547 , 552372 , 555709 , 558543 , 568322 , 569970 , 572037 , 578381 , 579534 , 583674 , 584797 , 586289 , 586959 , 595507 , 595854 , 599160 , 607170 , 617613 , 620319 , 621087 , 630825 , 636209 , 662556 , 671492 , 689007 , 693235 , 712777 , 719781 , 722107 , 727400 , 742404 , 776638 , 783507 , 790888 , 799596 , 817189 , 819921 , 825779 );
Copy