3
10.65 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
382735
579788
554929
676680
605584
757307
519452
549750
434254
453899
552359
523428
493299
517598
612235
594560
607034
796804
523539
530613
702867
621582
638408
513566
623035
599196
444288
512738
564805
557928
807407
723629
651335
687960
693576
675846
689014
455677
484942
592817
493311
625951
439540
444869
579792
681910
606771
619232
810401
796082
509056
550882
563654
585746
606665
506363
555533
687293
574364
606744
606997
528409
522215
619201
590221
577392
583302
624776
588039
]
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 (382735 , 579788 , 554929 , 676680 , 605584 , 757307 , 519452 , 549750 , 434254 , 453899 , 552359 , 523428 , 493299 , 517598 , 612235 , 594560 , 607034 , 796804 , 523539 , 530613 , 702867 , 621582 , 638408 , 513566 , 623035 , 599196 , 444288 , 512738 , 564805 , 557928 , 807407 , 723629 , 651335 , 687960 , 693576 , 675846 , 689014 , 455677 , 484942 , 592817 , 493311 , 625951 , 439540 , 444869 , 579792 , 681910 , 606771 , 619232 , 810401 , 796082 , 509056 , 550882 , 563654 , 585746 , 606665 , 506363 , 555533 , 687293 , 574364 , 606744 , 606997 , 528409 , 522215 , 619201 , 590221 , 577392 , 583302 , 624776 , 588039 );
Copy
4
2.50 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
382735
434254
439540
444288
444869
453899
455677
484942
493299
493311
506363
509056
512738
513566
517598
519452
522215
523428
523539
528409
530613
549750
550882
552359
554929
555533
557928
563654
564805
574364
577392
579788
579792
583302
585746
588039
590221
592817
594560
599196
605584
606665
606744
606771
606997
607034
612235
619201
619232
621582
623035
624776
625951
638408
651335
675846
676680
681910
687293
687960
689014
693576
702867
723629
757307
796082
796804
807407
810401
]
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 (382735 , 434254 , 439540 , 444288 , 444869 , 453899 , 455677 , 484942 , 493299 , 493311 , 506363 , 509056 , 512738 , 513566 , 517598 , 519452 , 522215 , 523428 , 523539 , 528409 , 530613 , 549750 , 550882 , 552359 , 554929 , 555533 , 557928 , 563654 , 564805 , 574364 , 577392 , 579788 , 579792 , 583302 , 585746 , 588039 , 590221 , 592817 , 594560 , 599196 , 605584 , 606665 , 606744 , 606771 , 606997 , 607034 , 612235 , 619201 , 619232 , 621582 , 623035 , 624776 , 625951 , 638408 , 651335 , 675846 , 676680 , 681910 , 687293 , 687960 , 689014 , 693576 , 702867 , 723629 , 757307 , 796082 , 796804 , 807407 , 810401 );
Copy
5
113.97 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
382735
434254
439540
444288
444869
453899
455677
484942
493299
493311
506363
509056
512738
513566
517598
519452
522215
523428
523539
528409
530613
549750
550882
552359
554929
555533
557928
563654
564805
574364
577392
579788
579792
583302
585746
588039
590221
592817
594560
599196
605584
606665
606744
606771
606997
607034
612235
619201
619232
621582
623035
624776
625951
638408
651335
675846
676680
681910
687293
687960
689014
693576
702867
723629
757307
796082
796804
807407
810401
]
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 (382735 , 434254 , 439540 , 444288 , 444869 , 453899 , 455677 , 484942 , 493299 , 493311 , 506363 , 509056 , 512738 , 513566 , 517598 , 519452 , 522215 , 523428 , 523539 , 528409 , 530613 , 549750 , 550882 , 552359 , 554929 , 555533 , 557928 , 563654 , 564805 , 574364 , 577392 , 579788 , 579792 , 583302 , 585746 , 588039 , 590221 , 592817 , 594560 , 599196 , 605584 , 606665 , 606744 , 606771 , 606997 , 607034 , 612235 , 619201 , 619232 , 621582 , 623035 , 624776 , 625951 , 638408 , 651335 , 675846 , 676680 , 681910 , 687293 , 687960 , 689014 , 693576 , 702867 , 723629 , 757307 , 796082 , 796804 , 807407 , 810401 );
Copy