3
10.63 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
563386
688773
699299
668605
513759
813305
756354
813315
521290
823957
738497
769582
540181
741625
382934
592149
759751
595374
601098
699297
723571
394045
468426
513812
778752
745449
527372
662452
453693
463448
501926
542244
460293
467751
475466
466434
453236
437880
513562
510545
794390
491424
800331
445975
449135
411828
463834
515415
465107
445961
827420
517650
476785
439668
513847
439575
513578
635249
440991
513575
463808
426152
592979
513572
]
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 (563386 , 688773 , 699299 , 668605 , 513759 , 813305 , 756354 , 813315 , 521290 , 823957 , 738497 , 769582 , 540181 , 741625 , 382934 , 592149 , 759751 , 595374 , 601098 , 699297 , 723571 , 394045 , 468426 , 513812 , 778752 , 745449 , 527372 , 662452 , 453693 , 463448 , 501926 , 542244 , 460293 , 467751 , 475466 , 466434 , 453236 , 437880 , 513562 , 510545 , 794390 , 491424 , 800331 , 445975 , 449135 , 411828 , 463834 , 515415 , 465107 , 445961 , 827420 , 517650 , 476785 , 439668 , 513847 , 439575 , 513578 , 635249 , 440991 , 513575 , 463808 , 426152 , 592979 , 513572 );
Copy
4
2.96 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
382934
394045
411828
426152
437880
439575
439668
440991
445961
445975
449135
453236
453693
460293
463448
463808
463834
465107
466434
467751
468426
475466
476785
491424
501926
510545
513562
513572
513575
513578
513759
513812
513847
515415
517650
521290
527372
540181
542244
563386
592149
592979
595374
601098
635249
662452
668605
688773
699297
699299
723571
738497
741625
745449
756354
759751
769582
778752
794390
800331
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 (382934 , 394045 , 411828 , 426152 , 437880 , 439575 , 439668 , 440991 , 445961 , 445975 , 449135 , 453236 , 453693 , 460293 , 463448 , 463808 , 463834 , 465107 , 466434 , 467751 , 468426 , 475466 , 476785 , 491424 , 501926 , 510545 , 513562 , 513572 , 513575 , 513578 , 513759 , 513812 , 513847 , 515415 , 517650 , 521290 , 527372 , 540181 , 542244 , 563386 , 592149 , 592979 , 595374 , 601098 , 635249 , 662452 , 668605 , 688773 , 699297 , 699299 , 723571 , 738497 , 741625 , 745449 , 756354 , 759751 , 769582 , 778752 , 794390 , 800331 , 813305 , 813315 , 823957 , 827420 );
Copy
5
77.72 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
382934
394045
411828
426152
437880
439575
439668
440991
445961
445975
449135
453236
453693
460293
463448
463808
463834
465107
466434
467751
468426
475466
476785
491424
501926
510545
513562
513572
513575
513578
513759
513812
513847
515415
517650
521290
527372
540181
542244
563386
592149
592979
595374
601098
635249
662452
668605
688773
699297
699299
723571
738497
741625
745449
756354
759751
769582
778752
794390
800331
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 (382934 , 394045 , 411828 , 426152 , 437880 , 439575 , 439668 , 440991 , 445961 , 445975 , 449135 , 453236 , 453693 , 460293 , 463448 , 463808 , 463834 , 465107 , 466434 , 467751 , 468426 , 475466 , 476785 , 491424 , 501926 , 510545 , 513562 , 513572 , 513575 , 513578 , 513759 , 513812 , 513847 , 515415 , 517650 , 521290 , 527372 , 540181 , 542244 , 563386 , 592149 , 592979 , 595374 , 601098 , 635249 , 662452 , 668605 , 688773 , 699297 , 699299 , 723571 , 738497 , 741625 , 745449 , 756354 , 759751 , 769582 , 778752 , 794390 , 800331 , 813305 , 813315 , 823957 , 827420 );
Copy