3
14.11 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
531919
475939
636111
387027
465542
387347
552847
507144
541124
520227
575714
501747
725211
532012
564337
584366
577582
625677
499970
431652
460697
596309
452389
500159
462654
544274
565032
587313
748001
569409
600394
605867
497064
466160
482854
621784
440650
539282
546004
526722
552217
598073
656933
523948
588897
529430
633466
583197
407618
603756
563453
592206
452616
584720
595891
557570
467981
584208
603911
605105
480521
600349
428854
663569
596652
619318
621527
508275
662445
]
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 (531919 , 475939 , 636111 , 387027 , 465542 , 387347 , 552847 , 507144 , 541124 , 520227 , 575714 , 501747 , 725211 , 532012 , 564337 , 584366 , 577582 , 625677 , 499970 , 431652 , 460697 , 596309 , 452389 , 500159 , 462654 , 544274 , 565032 , 587313 , 748001 , 569409 , 600394 , 605867 , 497064 , 466160 , 482854 , 621784 , 440650 , 539282 , 546004 , 526722 , 552217 , 598073 , 656933 , 523948 , 588897 , 529430 , 633466 , 583197 , 407618 , 603756 , 563453 , 592206 , 452616 , 584720 , 595891 , 557570 , 467981 , 584208 , 603911 , 605105 , 480521 , 600349 , 428854 , 663569 , 596652 , 619318 , 621527 , 508275 , 662445 );
Copy
4
2.08 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
387027
387347
407618
428854
431652
440650
452389
452616
460697
462654
465542
466160
467981
475939
480521
482854
497064
499970
500159
501747
507144
508275
520227
523948
526722
529430
531919
532012
539282
541124
544274
546004
552217
552847
557570
563453
564337
565032
569409
575714
577582
583197
584208
584366
584720
587313
588897
592206
595891
596309
596652
598073
600349
600394
603756
603911
605105
605867
619318
621527
621784
625677
633466
636111
656933
662445
663569
725211
748001
]
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 (387027 , 387347 , 407618 , 428854 , 431652 , 440650 , 452389 , 452616 , 460697 , 462654 , 465542 , 466160 , 467981 , 475939 , 480521 , 482854 , 497064 , 499970 , 500159 , 501747 , 507144 , 508275 , 520227 , 523948 , 526722 , 529430 , 531919 , 532012 , 539282 , 541124 , 544274 , 546004 , 552217 , 552847 , 557570 , 563453 , 564337 , 565032 , 569409 , 575714 , 577582 , 583197 , 584208 , 584366 , 584720 , 587313 , 588897 , 592206 , 595891 , 596309 , 596652 , 598073 , 600349 , 600394 , 603756 , 603911 , 605105 , 605867 , 619318 , 621527 , 621784 , 625677 , 633466 , 636111 , 656933 , 662445 , 663569 , 725211 , 748001 );
Copy
5
89.95 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
387027
387347
407618
428854
431652
440650
452389
452616
460697
462654
465542
466160
467981
475939
480521
482854
497064
499970
500159
501747
507144
508275
520227
523948
526722
529430
531919
532012
539282
541124
544274
546004
552217
552847
557570
563453
564337
565032
569409
575714
577582
583197
584208
584366
584720
587313
588897
592206
595891
596309
596652
598073
600349
600394
603756
603911
605105
605867
619318
621527
621784
625677
633466
636111
656933
662445
663569
725211
748001
]
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 (387027 , 387347 , 407618 , 428854 , 431652 , 440650 , 452389 , 452616 , 460697 , 462654 , 465542 , 466160 , 467981 , 475939 , 480521 , 482854 , 497064 , 499970 , 500159 , 501747 , 507144 , 508275 , 520227 , 523948 , 526722 , 529430 , 531919 , 532012 , 539282 , 541124 , 544274 , 546004 , 552217 , 552847 , 557570 , 563453 , 564337 , 565032 , 569409 , 575714 , 577582 , 583197 , 584208 , 584366 , 584720 , 587313 , 588897 , 592206 , 595891 , 596309 , 596652 , 598073 , 600349 , 600394 , 603756 , 603911 , 605105 , 605867 , 619318 , 621527 , 621784 , 625677 , 633466 , 636111 , 656933 , 662445 , 663569 , 725211 , 748001 );
Copy