4
10.74 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
800543
794367
35091
737895
669652
776829
793683
545905
397869
495204
728536
450277
717644
714203
823887
336085
819693
526613
390389
468244
808965
738292
241603
809076
607661
523904
760406
755363
381817
803482
534049
554775
814971
475296
697457
666712
786600
758791
804800
577531
61726
710142
595214
636638
781862
808958
808319
620391
778811
794223
760686
807830
416037
457577
471141
607716
450289
569133
633521
589349
607509
812749
758079
617428
607552
450287
527476
665781
540573
705424
509590
533013
618611
]
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 (800543 , 794367 , 35091 , 737895 , 669652 , 776829 , 793683 , 545905 , 397869 , 495204 , 728536 , 450277 , 717644 , 714203 , 823887 , 336085 , 819693 , 526613 , 390389 , 468244 , 808965 , 738292 , 241603 , 809076 , 607661 , 523904 , 760406 , 755363 , 381817 , 803482 , 534049 , 554775 , 814971 , 475296 , 697457 , 666712 , 786600 , 758791 , 804800 , 577531 , 61726 , 710142 , 595214 , 636638 , 781862 , 808958 , 808319 , 620391 , 778811 , 794223 , 760686 , 807830 , 416037 , 457577 , 471141 , 607716 , 450289 , 569133 , 633521 , 589349 , 607509 , 812749 , 758079 , 617428 , 607552 , 450287 , 527476 , 665781 , 540573 , 705424 , 509590 , 533013 , 618611 );
Copy
5
3.26 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
35091
61726
241603
336085
381817
390389
397869
416037
450277
450287
450289
457577
468244
471141
475296
495204
509590
523904
526613
527476
533013
534049
540573
545905
554775
569133
577531
589349
595214
607509
607552
607661
607716
617428
618611
620391
633521
636638
665781
666712
669652
697457
705424
710142
714203
717644
728536
737895
738292
755363
758079
758791
760406
760686
776829
778811
781862
786600
793683
794223
794367
800543
803482
804800
807830
808319
808958
808965
809076
812749
814971
819693
823887
]
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 (35091 , 61726 , 241603 , 336085 , 381817 , 390389 , 397869 , 416037 , 450277 , 450287 , 450289 , 457577 , 468244 , 471141 , 475296 , 495204 , 509590 , 523904 , 526613 , 527476 , 533013 , 534049 , 540573 , 545905 , 554775 , 569133 , 577531 , 589349 , 595214 , 607509 , 607552 , 607661 , 607716 , 617428 , 618611 , 620391 , 633521 , 636638 , 665781 , 666712 , 669652 , 697457 , 705424 , 710142 , 714203 , 717644 , 728536 , 737895 , 738292 , 755363 , 758079 , 758791 , 760406 , 760686 , 776829 , 778811 , 781862 , 786600 , 793683 , 794223 , 794367 , 800543 , 803482 , 804800 , 807830 , 808319 , 808958 , 808965 , 809076 , 812749 , 814971 , 819693 , 823887 );
Copy
6
79.26 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
35091
61726
241603
336085
381817
390389
397869
416037
450277
450287
450289
457577
468244
471141
475296
495204
509590
523904
526613
527476
533013
534049
540573
545905
554775
569133
577531
589349
595214
607509
607552
607661
607716
617428
618611
620391
633521
636638
665781
666712
669652
697457
705424
710142
714203
717644
728536
737895
738292
755363
758079
758791
760406
760686
776829
778811
781862
786600
793683
794223
794367
800543
803482
804800
807830
808319
808958
808965
809076
812749
814971
819693
823887
]
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 (35091 , 61726 , 241603 , 336085 , 381817 , 390389 , 397869 , 416037 , 450277 , 450287 , 450289 , 457577 , 468244 , 471141 , 475296 , 495204 , 509590 , 523904 , 526613 , 527476 , 533013 , 534049 , 540573 , 545905 , 554775 , 569133 , 577531 , 589349 , 595214 , 607509 , 607552 , 607661 , 607716 , 617428 , 618611 , 620391 , 633521 , 636638 , 665781 , 666712 , 669652 , 697457 , 705424 , 710142 , 714203 , 717644 , 728536 , 737895 , 738292 , 755363 , 758079 , 758791 , 760406 , 760686 , 776829 , 778811 , 781862 , 786600 , 793683 , 794223 , 794367 , 800543 , 803482 , 804800 , 807830 , 808319 , 808958 , 808965 , 809076 , 812749 , 814971 , 819693 , 823887 );
Copy