3
8.37 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
729700
513578
699297
800331
459155
716386
530421
530427
672919
813305
772213
756354
813315
796119
759751
823957
672913
765924
768578
738497
421763
723571
592149
588526
807122
809537
534533
595374
797210
741625
767630
727754
547454
658946
601098
792536
788113
806812
632114
463448
493734
534548
617583
429606
475466
662452
795420
468426
453236
459170
514857
466434
510545
517804
827420
449135
427364
513562
660419
534574
582972
463834
445975
420295
513847
515415
465107
476785
439575
635249
440991
592979
513572
426152
463808
]
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 (729700 , 513578 , 699297 , 800331 , 459155 , 716386 , 530421 , 530427 , 672919 , 813305 , 772213 , 756354 , 813315 , 796119 , 759751 , 823957 , 672913 , 765924 , 768578 , 738497 , 421763 , 723571 , 592149 , 588526 , 807122 , 809537 , 534533 , 595374 , 797210 , 741625 , 767630 , 727754 , 547454 , 658946 , 601098 , 792536 , 788113 , 806812 , 632114 , 463448 , 493734 , 534548 , 617583 , 429606 , 475466 , 662452 , 795420 , 468426 , 453236 , 459170 , 514857 , 466434 , 510545 , 517804 , 827420 , 449135 , 427364 , 513562 , 660419 , 534574 , 582972 , 463834 , 445975 , 420295 , 513847 , 515415 , 465107 , 476785 , 439575 , 635249 , 440991 , 592979 , 513572 , 426152 , 463808 );
Copy
4
2.61 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
420295
421763
426152
427364
429606
439575
440991
445975
449135
453236
459155
459170
463448
463808
463834
465107
466434
468426
475466
476785
493734
510545
513562
513572
513578
513847
514857
515415
517804
530421
530427
534533
534548
534574
547454
582972
588526
592149
592979
595374
601098
617583
632114
635249
658946
660419
662452
672913
672919
699297
716386
723571
727754
729700
738497
741625
756354
759751
765924
767630
768578
772213
788113
792536
795420
796119
797210
800331
806812
807122
809537
813305
813315
823957
827420
]
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 (420295 , 421763 , 426152 , 427364 , 429606 , 439575 , 440991 , 445975 , 449135 , 453236 , 459155 , 459170 , 463448 , 463808 , 463834 , 465107 , 466434 , 468426 , 475466 , 476785 , 493734 , 510545 , 513562 , 513572 , 513578 , 513847 , 514857 , 515415 , 517804 , 530421 , 530427 , 534533 , 534548 , 534574 , 547454 , 582972 , 588526 , 592149 , 592979 , 595374 , 601098 , 617583 , 632114 , 635249 , 658946 , 660419 , 662452 , 672913 , 672919 , 699297 , 716386 , 723571 , 727754 , 729700 , 738497 , 741625 , 756354 , 759751 , 765924 , 767630 , 768578 , 772213 , 788113 , 792536 , 795420 , 796119 , 797210 , 800331 , 806812 , 807122 , 809537 , 813305 , 813315 , 823957 , 827420 );
Copy
5
92.02 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
420295
421763
426152
427364
429606
439575
440991
445975
449135
453236
459155
459170
463448
463808
463834
465107
466434
468426
475466
476785
493734
510545
513562
513572
513578
513847
514857
515415
517804
530421
530427
534533
534548
534574
547454
582972
588526
592149
592979
595374
601098
617583
632114
635249
658946
660419
662452
672913
672919
699297
716386
723571
727754
729700
738497
741625
756354
759751
765924
767630
768578
772213
788113
792536
795420
796119
797210
800331
806812
807122
809537
813305
813315
823957
827420
]
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 (420295 , 421763 , 426152 , 427364 , 429606 , 439575 , 440991 , 445975 , 449135 , 453236 , 459155 , 459170 , 463448 , 463808 , 463834 , 465107 , 466434 , 468426 , 475466 , 476785 , 493734 , 510545 , 513562 , 513572 , 513578 , 513847 , 514857 , 515415 , 517804 , 530421 , 530427 , 534533 , 534548 , 534574 , 547454 , 582972 , 588526 , 592149 , 592979 , 595374 , 601098 , 617583 , 632114 , 635249 , 658946 , 660419 , 662452 , 672913 , 672919 , 699297 , 716386 , 723571 , 727754 , 729700 , 738497 , 741625 , 756354 , 759751 , 765924 , 767630 , 768578 , 772213 , 788113 , 792536 , 795420 , 796119 , 797210 , 800331 , 806812 , 807122 , 809537 , 813305 , 813315 , 823957 , 827420 );
Copy