4
13.05 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
604631
630266
459277
747597
468603
526564
540595
525055
399857
428569
452305
502634
511254
393590
524089
499069
714497
559181
806324
465613
463919
412043
448803
694058
640806
775797
755967
434374
475989
418219
439800
415966
597227
426699
417449
473778
414651
419910
404318
413827
523205
510797
530633
489120
526003
556480
647993
543919
676097
589524
520736
490956
645997
542648
462450
446529
632580
635220
651647
758540
633446
503658
530694
555789
416635
549860
479277
502793
614435
453039
448816
419627
637123
518935
558138
]
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 (604631 , 630266 , 459277 , 747597 , 468603 , 526564 , 540595 , 525055 , 399857 , 428569 , 452305 , 502634 , 511254 , 393590 , 524089 , 499069 , 714497 , 559181 , 806324 , 465613 , 463919 , 412043 , 448803 , 694058 , 640806 , 775797 , 755967 , 434374 , 475989 , 418219 , 439800 , 415966 , 597227 , 426699 , 417449 , 473778 , 414651 , 419910 , 404318 , 413827 , 523205 , 510797 , 530633 , 489120 , 526003 , 556480 , 647993 , 543919 , 676097 , 589524 , 520736 , 490956 , 645997 , 542648 , 462450 , 446529 , 632580 , 635220 , 651647 , 758540 , 633446 , 503658 , 530694 , 555789 , 416635 , 549860 , 479277 , 502793 , 614435 , 453039 , 448816 , 419627 , 637123 , 518935 , 558138 );
Copy
5
2.56 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
393590
399857
404318
412043
413827
414651
415966
416635
417449
418219
419627
419910
426699
428569
434374
439800
446529
448803
448816
452305
453039
459277
462450
463919
465613
468603
473778
475989
479277
489120
490956
499069
502634
502793
503658
510797
511254
518935
520736
523205
524089
525055
526003
526564
530633
530694
540595
542648
543919
549860
555789
556480
558138
559181
589524
597227
604631
614435
630266
632580
633446
635220
637123
640806
645997
647993
651647
676097
694058
714497
747597
755967
758540
775797
806324
]
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 (393590 , 399857 , 404318 , 412043 , 413827 , 414651 , 415966 , 416635 , 417449 , 418219 , 419627 , 419910 , 426699 , 428569 , 434374 , 439800 , 446529 , 448803 , 448816 , 452305 , 453039 , 459277 , 462450 , 463919 , 465613 , 468603 , 473778 , 475989 , 479277 , 489120 , 490956 , 499069 , 502634 , 502793 , 503658 , 510797 , 511254 , 518935 , 520736 , 523205 , 524089 , 525055 , 526003 , 526564 , 530633 , 530694 , 540595 , 542648 , 543919 , 549860 , 555789 , 556480 , 558138 , 559181 , 589524 , 597227 , 604631 , 614435 , 630266 , 632580 , 633446 , 635220 , 637123 , 640806 , 645997 , 647993 , 651647 , 676097 , 694058 , 714497 , 747597 , 755967 , 758540 , 775797 , 806324 );
Copy
6
81.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
393590
399857
404318
412043
413827
414651
415966
416635
417449
418219
419627
419910
426699
428569
434374
439800
446529
448803
448816
452305
453039
459277
462450
463919
465613
468603
473778
475989
479277
489120
490956
499069
502634
502793
503658
510797
511254
518935
520736
523205
524089
525055
526003
526564
530633
530694
540595
542648
543919
549860
555789
556480
558138
559181
589524
597227
604631
614435
630266
632580
633446
635220
637123
640806
645997
647993
651647
676097
694058
714497
747597
755967
758540
775797
806324
]
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 (393590 , 399857 , 404318 , 412043 , 413827 , 414651 , 415966 , 416635 , 417449 , 418219 , 419627 , 419910 , 426699 , 428569 , 434374 , 439800 , 446529 , 448803 , 448816 , 452305 , 453039 , 459277 , 462450 , 463919 , 465613 , 468603 , 473778 , 475989 , 479277 , 489120 , 490956 , 499069 , 502634 , 502793 , 503658 , 510797 , 511254 , 518935 , 520736 , 523205 , 524089 , 525055 , 526003 , 526564 , 530633 , 530694 , 540595 , 542648 , 543919 , 549860 , 555789 , 556480 , 558138 , 559181 , 589524 , 597227 , 604631 , 614435 , 630266 , 632580 , 633446 , 635220 , 637123 , 640806 , 645997 , 647993 , 651647 , 676097 , 694058 , 714497 , 747597 , 755967 , 758540 , 775797 , 806324 );
Copy