3
11.36 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
738032
631301
700682
779278
789017
737151
739475
789810
12792
815853
455160
575750
700733
784261
730953
635160
775781
776164
776911
433967
524180
491721
524694
524359
475986
495730
511391
556840
576342
645852
663318
557213
783237
759650
737156
461774
479964
447521
466397
523222
456487
526385
552637
577386
610011
527678
524176
511562
482368
552380
582371
716496
622981
602562
615726
623501
786463
472286
511336
517465
576628
544150
575472
716394
451115
512295
582227
645918
589769
599545
]
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 (738032 , 631301 , 700682 , 779278 , 789017 , 737151 , 739475 , 789810 , 12792 , 815853 , 455160 , 575750 , 700733 , 784261 , 730953 , 635160 , 775781 , 776164 , 776911 , 433967 , 524180 , 491721 , 524694 , 524359 , 475986 , 495730 , 511391 , 556840 , 576342 , 645852 , 663318 , 557213 , 783237 , 759650 , 737156 , 461774 , 479964 , 447521 , 466397 , 523222 , 456487 , 526385 , 552637 , 577386 , 610011 , 527678 , 524176 , 511562 , 482368 , 552380 , 582371 , 716496 , 622981 , 602562 , 615726 , 623501 , 786463 , 472286 , 511336 , 517465 , 576628 , 544150 , 575472 , 716394 , 451115 , 512295 , 582227 , 645918 , 589769 , 599545 );
Copy
4
3.14 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
12792
433967
447521
451115
455160
456487
461774
466397
472286
475986
479964
482368
491721
495730
511336
511391
511562
512295
517465
523222
524176
524180
524359
524694
526385
527678
544150
552380
552637
556840
557213
575472
575750
576342
576628
577386
582227
582371
589769
599545
602562
610011
615726
622981
623501
631301
635160
645852
645918
663318
700682
700733
716394
716496
730953
737151
737156
738032
739475
759650
775781
776164
776911
779278
783237
784261
786463
789017
789810
815853
]
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 (12792 , 433967 , 447521 , 451115 , 455160 , 456487 , 461774 , 466397 , 472286 , 475986 , 479964 , 482368 , 491721 , 495730 , 511336 , 511391 , 511562 , 512295 , 517465 , 523222 , 524176 , 524180 , 524359 , 524694 , 526385 , 527678 , 544150 , 552380 , 552637 , 556840 , 557213 , 575472 , 575750 , 576342 , 576628 , 577386 , 582227 , 582371 , 589769 , 599545 , 602562 , 610011 , 615726 , 622981 , 623501 , 631301 , 635160 , 645852 , 645918 , 663318 , 700682 , 700733 , 716394 , 716496 , 730953 , 737151 , 737156 , 738032 , 739475 , 759650 , 775781 , 776164 , 776911 , 779278 , 783237 , 784261 , 786463 , 789017 , 789810 , 815853 );
Copy
5
111.36 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
12792
433967
447521
451115
455160
456487
461774
466397
472286
475986
479964
482368
491721
495730
511336
511391
511562
512295
517465
523222
524176
524180
524359
524694
526385
527678
544150
552380
552637
556840
557213
575472
575750
576342
576628
577386
582227
582371
589769
599545
602562
610011
615726
622981
623501
631301
635160
645852
645918
663318
700682
700733
716394
716496
730953
737151
737156
738032
739475
759650
775781
776164
776911
779278
783237
784261
786463
789017
789810
815853
]
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 (12792 , 433967 , 447521 , 451115 , 455160 , 456487 , 461774 , 466397 , 472286 , 475986 , 479964 , 482368 , 491721 , 495730 , 511336 , 511391 , 511562 , 512295 , 517465 , 523222 , 524176 , 524180 , 524359 , 524694 , 526385 , 527678 , 544150 , 552380 , 552637 , 556840 , 557213 , 575472 , 575750 , 576342 , 576628 , 577386 , 582227 , 582371 , 589769 , 599545 , 602562 , 610011 , 615726 , 622981 , 623501 , 631301 , 635160 , 645852 , 645918 , 663318 , 700682 , 700733 , 716394 , 716496 , 730953 , 737151 , 737156 , 738032 , 739475 , 759650 , 775781 , 776164 , 776911 , 779278 , 783237 , 784261 , 786463 , 789017 , 789810 , 815853 );
Copy