4
11.31 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
644271
602617
607640
804803
479107
472413
476249
485927
483361
583729
576157
625770
487946
452086
461048
467118
526213
530110
530836
517822
525501
546874
571828
544032
666095
556771
593029
805638
444917
465431
451248
523861
484316
522616
425834
411227
444916
452195
521367
498352
535464
517722
617116
643370
455436
509988
477465
452284
455685
514576
496802
569132
623641
411189
452363
520911
506269
571734
603612
482808
518012
518131
520413
658433
607413
455912
526587
539354
]
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 (644271 , 602617 , 607640 , 804803 , 479107 , 472413 , 476249 , 485927 , 483361 , 583729 , 576157 , 625770 , 487946 , 452086 , 461048 , 467118 , 526213 , 530110 , 530836 , 517822 , 525501 , 546874 , 571828 , 544032 , 666095 , 556771 , 593029 , 805638 , 444917 , 465431 , 451248 , 523861 , 484316 , 522616 , 425834 , 411227 , 444916 , 452195 , 521367 , 498352 , 535464 , 517722 , 617116 , 643370 , 455436 , 509988 , 477465 , 452284 , 455685 , 514576 , 496802 , 569132 , 623641 , 411189 , 452363 , 520911 , 506269 , 571734 , 603612 , 482808 , 518012 , 518131 , 520413 , 658433 , 607413 , 455912 , 526587 , 539354 );
Copy
5
3.38 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
411189
411227
425834
444916
444917
451248
452086
452195
452284
452363
455436
455685
455912
461048
465431
467118
472413
476249
477465
479107
482808
483361
484316
485927
487946
496802
498352
506269
509988
514576
517722
517822
518012
518131
520413
520911
521367
522616
523861
525501
526213
526587
530110
530836
535464
539354
544032
546874
556771
569132
571734
571828
576157
583729
593029
602617
603612
607413
607640
617116
623641
625770
643370
644271
658433
666095
804803
805638
]
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 (411189 , 411227 , 425834 , 444916 , 444917 , 451248 , 452086 , 452195 , 452284 , 452363 , 455436 , 455685 , 455912 , 461048 , 465431 , 467118 , 472413 , 476249 , 477465 , 479107 , 482808 , 483361 , 484316 , 485927 , 487946 , 496802 , 498352 , 506269 , 509988 , 514576 , 517722 , 517822 , 518012 , 518131 , 520413 , 520911 , 521367 , 522616 , 523861 , 525501 , 526213 , 526587 , 530110 , 530836 , 535464 , 539354 , 544032 , 546874 , 556771 , 569132 , 571734 , 571828 , 576157 , 583729 , 593029 , 602617 , 603612 , 607413 , 607640 , 617116 , 623641 , 625770 , 643370 , 644271 , 658433 , 666095 , 804803 , 805638 );
Copy
6
101.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
411189
411227
425834
444916
444917
451248
452086
452195
452284
452363
455436
455685
455912
461048
465431
467118
472413
476249
477465
479107
482808
483361
484316
485927
487946
496802
498352
506269
509988
514576
517722
517822
518012
518131
520413
520911
521367
522616
523861
525501
526213
526587
530110
530836
535464
539354
544032
546874
556771
569132
571734
571828
576157
583729
593029
602617
603612
607413
607640
617116
623641
625770
643370
644271
658433
666095
804803
805638
]
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 (411189 , 411227 , 425834 , 444916 , 444917 , 451248 , 452086 , 452195 , 452284 , 452363 , 455436 , 455685 , 455912 , 461048 , 465431 , 467118 , 472413 , 476249 , 477465 , 479107 , 482808 , 483361 , 484316 , 485927 , 487946 , 496802 , 498352 , 506269 , 509988 , 514576 , 517722 , 517822 , 518012 , 518131 , 520413 , 520911 , 521367 , 522616 , 523861 , 525501 , 526213 , 526587 , 530110 , 530836 , 535464 , 539354 , 544032 , 546874 , 556771 , 569132 , 571734 , 571828 , 576157 , 583729 , 593029 , 602617 , 603612 , 607413 , 607640 , 617116 , 623641 , 625770 , 643370 , 644271 , 658433 , 666095 , 804803 , 805638 );
Copy