4
11.64 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
95837
188117
814971
716765
756405
533643
779584
577402
430818
509590
400847
819920
452189
802379
810229
812911
641965
702453
813101
448084
590852
480645
527863
502792
535423
598376
600453
621426
453686
476117
431341
481584
667975
633521
569544
459325
478035
600543
782408
464704
813532
788260
415761
448954
404585
537937
478037
569133
668668
617428
473439
480412
495660
634885
510107
630866
674986
756469
427543
698124
798872
486868
415883
610588
483555
510856
540573
624247
644047
527908
397481
521575
605318
]
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 (95837 , 188117 , 814971 , 716765 , 756405 , 533643 , 779584 , 577402 , 430818 , 509590 , 400847 , 819920 , 452189 , 802379 , 810229 , 812911 , 641965 , 702453 , 813101 , 448084 , 590852 , 480645 , 527863 , 502792 , 535423 , 598376 , 600453 , 621426 , 453686 , 476117 , 431341 , 481584 , 667975 , 633521 , 569544 , 459325 , 478035 , 600543 , 782408 , 464704 , 813532 , 788260 , 415761 , 448954 , 404585 , 537937 , 478037 , 569133 , 668668 , 617428 , 473439 , 480412 , 495660 , 634885 , 510107 , 630866 , 674986 , 756469 , 427543 , 698124 , 798872 , 486868 , 415883 , 610588 , 483555 , 510856 , 540573 , 624247 , 644047 , 527908 , 397481 , 521575 , 605318 );
Copy
5
2.87 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
95837
188117
397481
400847
404585
415761
415883
427543
430818
431341
448084
448954
452189
453686
459325
464704
473439
476117
478035
478037
480412
480645
481584
483555
486868
495660
502792
509590
510107
510856
521575
527863
527908
533643
535423
537937
540573
569133
569544
577402
590852
598376
600453
600543
605318
610588
617428
621426
624247
630866
633521
634885
641965
644047
667975
668668
674986
698124
702453
716765
756405
756469
779584
782408
788260
798872
802379
810229
812911
813101
813532
814971
819920
]
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 (95837 , 188117 , 397481 , 400847 , 404585 , 415761 , 415883 , 427543 , 430818 , 431341 , 448084 , 448954 , 452189 , 453686 , 459325 , 464704 , 473439 , 476117 , 478035 , 478037 , 480412 , 480645 , 481584 , 483555 , 486868 , 495660 , 502792 , 509590 , 510107 , 510856 , 521575 , 527863 , 527908 , 533643 , 535423 , 537937 , 540573 , 569133 , 569544 , 577402 , 590852 , 598376 , 600453 , 600543 , 605318 , 610588 , 617428 , 621426 , 624247 , 630866 , 633521 , 634885 , 641965 , 644047 , 667975 , 668668 , 674986 , 698124 , 702453 , 716765 , 756405 , 756469 , 779584 , 782408 , 788260 , 798872 , 802379 , 810229 , 812911 , 813101 , 813532 , 814971 , 819920 );
Copy
6
135.68 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
95837
188117
397481
400847
404585
415761
415883
427543
430818
431341
448084
448954
452189
453686
459325
464704
473439
476117
478035
478037
480412
480645
481584
483555
486868
495660
502792
509590
510107
510856
521575
527863
527908
533643
535423
537937
540573
569133
569544
577402
590852
598376
600453
600543
605318
610588
617428
621426
624247
630866
633521
634885
641965
644047
667975
668668
674986
698124
702453
716765
756405
756469
779584
782408
788260
798872
802379
810229
812911
813101
813532
814971
819920
]
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 (95837 , 188117 , 397481 , 400847 , 404585 , 415761 , 415883 , 427543 , 430818 , 431341 , 448084 , 448954 , 452189 , 453686 , 459325 , 464704 , 473439 , 476117 , 478035 , 478037 , 480412 , 480645 , 481584 , 483555 , 486868 , 495660 , 502792 , 509590 , 510107 , 510856 , 521575 , 527863 , 527908 , 533643 , 535423 , 537937 , 540573 , 569133 , 569544 , 577402 , 590852 , 598376 , 600453 , 600543 , 605318 , 610588 , 617428 , 621426 , 624247 , 630866 , 633521 , 634885 , 641965 , 644047 , 667975 , 668668 , 674986 , 698124 , 702453 , 716765 , 756405 , 756469 , 779584 , 782408 , 788260 , 798872 , 802379 , 810229 , 812911 , 813101 , 813532 , 814971 , 819920 );
Copy