3
14.97 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
486917
513503
814885
493600
530130
554804
563111
716405
707315
604767
761028
477990
466780
483408
537265
620239
588057
486880
535441
516025
426515
462268
532888
532797
535535
518151
544311
565773
550827
571785
575279
725036
415787
460854
421825
435651
509430
513516
520805
515876
518881
404904
815119
525760
615757
804771
309449
495193
497667
467428
456128
516324
507710
578445
285702
486199
550128
550579
478802
415950
472299
506269
475951
513025
509433
605586
562790
511009
]
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 (486917 , 513503 , 814885 , 493600 , 530130 , 554804 , 563111 , 716405 , 707315 , 604767 , 761028 , 477990 , 466780 , 483408 , 537265 , 620239 , 588057 , 486880 , 535441 , 516025 , 426515 , 462268 , 532888 , 532797 , 535535 , 518151 , 544311 , 565773 , 550827 , 571785 , 575279 , 725036 , 415787 , 460854 , 421825 , 435651 , 509430 , 513516 , 520805 , 515876 , 518881 , 404904 , 815119 , 525760 , 615757 , 804771 , 309449 , 495193 , 497667 , 467428 , 456128 , 516324 , 507710 , 578445 , 285702 , 486199 , 550128 , 550579 , 478802 , 415950 , 472299 , 506269 , 475951 , 513025 , 509433 , 605586 , 562790 , 511009 );
Copy
4
2.26 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
285702
309449
404904
415787
415950
421825
426515
435651
456128
460854
462268
466780
467428
472299
475951
477990
478802
483408
486199
486880
486917
493600
495193
497667
506269
507710
509430
509433
511009
513025
513503
513516
515876
516025
516324
518151
518881
520805
525760
530130
532797
532888
535441
535535
537265
544311
550128
550579
550827
554804
562790
563111
565773
571785
575279
578445
588057
604767
605586
615757
620239
707315
716405
725036
761028
804771
814885
815119
]
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 (285702 , 309449 , 404904 , 415787 , 415950 , 421825 , 426515 , 435651 , 456128 , 460854 , 462268 , 466780 , 467428 , 472299 , 475951 , 477990 , 478802 , 483408 , 486199 , 486880 , 486917 , 493600 , 495193 , 497667 , 506269 , 507710 , 509430 , 509433 , 511009 , 513025 , 513503 , 513516 , 515876 , 516025 , 516324 , 518151 , 518881 , 520805 , 525760 , 530130 , 532797 , 532888 , 535441 , 535535 , 537265 , 544311 , 550128 , 550579 , 550827 , 554804 , 562790 , 563111 , 565773 , 571785 , 575279 , 578445 , 588057 , 604767 , 605586 , 615757 , 620239 , 707315 , 716405 , 725036 , 761028 , 804771 , 814885 , 815119 );
Copy
5
79.18 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
285702
309449
404904
415787
415950
421825
426515
435651
456128
460854
462268
466780
467428
472299
475951
477990
478802
483408
486199
486880
486917
493600
495193
497667
506269
507710
509430
509433
511009
513025
513503
513516
515876
516025
516324
518151
518881
520805
525760
530130
532797
532888
535441
535535
537265
544311
550128
550579
550827
554804
562790
563111
565773
571785
575279
578445
588057
604767
605586
615757
620239
707315
716405
725036
761028
804771
814885
815119
]
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 (285702 , 309449 , 404904 , 415787 , 415950 , 421825 , 426515 , 435651 , 456128 , 460854 , 462268 , 466780 , 467428 , 472299 , 475951 , 477990 , 478802 , 483408 , 486199 , 486880 , 486917 , 493600 , 495193 , 497667 , 506269 , 507710 , 509430 , 509433 , 511009 , 513025 , 513503 , 513516 , 515876 , 516025 , 516324 , 518151 , 518881 , 520805 , 525760 , 530130 , 532797 , 532888 , 535441 , 535535 , 537265 , 544311 , 550128 , 550579 , 550827 , 554804 , 562790 , 563111 , 565773 , 571785 , 575279 , 578445 , 588057 , 604767 , 605586 , 615757 , 620239 , 707315 , 716405 , 725036 , 761028 , 804771 , 814885 , 815119 );
Copy