3
10.71 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
741763
732069
625783
478269
14534
459381
465364
466209
477982
466046
469432
466018
470779
484627
490873
511607
514231
524612
527847
491510
513655
493194
473106
528053
544500
584168
663380
660054
565481
455479
415749
447890
465963
470287
490901
490996
483777
502808
563198
466215
465317
419609
420218
531313
489309
514457
406089
413972
453183
484728
558788
572053
610197
522874
514375
630177
618476
467428
525337
518593
548056
589683
518597
540792
491955
518586
597148
476604
559378
]
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 (741763 , 732069 , 625783 , 478269 , 14534 , 459381 , 465364 , 466209 , 477982 , 466046 , 469432 , 466018 , 470779 , 484627 , 490873 , 511607 , 514231 , 524612 , 527847 , 491510 , 513655 , 493194 , 473106 , 528053 , 544500 , 584168 , 663380 , 660054 , 565481 , 455479 , 415749 , 447890 , 465963 , 470287 , 490901 , 490996 , 483777 , 502808 , 563198 , 466215 , 465317 , 419609 , 420218 , 531313 , 489309 , 514457 , 406089 , 413972 , 453183 , 484728 , 558788 , 572053 , 610197 , 522874 , 514375 , 630177 , 618476 , 467428 , 525337 , 518593 , 548056 , 589683 , 518597 , 540792 , 491955 , 518586 , 597148 , 476604 , 559378 );
Copy
4
2.49 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
14534
406089
413972
415749
419609
420218
447890
453183
455479
459381
465317
465364
465963
466018
466046
466209
466215
467428
469432
470287
470779
473106
476604
477982
478269
483777
484627
484728
489309
490873
490901
490996
491510
491955
493194
502808
511607
513655
514231
514375
514457
518586
518593
518597
522874
524612
525337
527847
528053
531313
540792
544500
548056
558788
559378
563198
565481
572053
584168
589683
597148
610197
618476
625783
630177
660054
663380
732069
741763
]
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 (14534 , 406089 , 413972 , 415749 , 419609 , 420218 , 447890 , 453183 , 455479 , 459381 , 465317 , 465364 , 465963 , 466018 , 466046 , 466209 , 466215 , 467428 , 469432 , 470287 , 470779 , 473106 , 476604 , 477982 , 478269 , 483777 , 484627 , 484728 , 489309 , 490873 , 490901 , 490996 , 491510 , 491955 , 493194 , 502808 , 511607 , 513655 , 514231 , 514375 , 514457 , 518586 , 518593 , 518597 , 522874 , 524612 , 525337 , 527847 , 528053 , 531313 , 540792 , 544500 , 548056 , 558788 , 559378 , 563198 , 565481 , 572053 , 584168 , 589683 , 597148 , 610197 , 618476 , 625783 , 630177 , 660054 , 663380 , 732069 , 741763 );
Copy
5
124.24 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
14534
406089
413972
415749
419609
420218
447890
453183
455479
459381
465317
465364
465963
466018
466046
466209
466215
467428
469432
470287
470779
473106
476604
477982
478269
483777
484627
484728
489309
490873
490901
490996
491510
491955
493194
502808
511607
513655
514231
514375
514457
518586
518593
518597
522874
524612
525337
527847
528053
531313
540792
544500
548056
558788
559378
563198
565481
572053
584168
589683
597148
610197
618476
625783
630177
660054
663380
732069
741763
]
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 (14534 , 406089 , 413972 , 415749 , 419609 , 420218 , 447890 , 453183 , 455479 , 459381 , 465317 , 465364 , 465963 , 466018 , 466046 , 466209 , 466215 , 467428 , 469432 , 470287 , 470779 , 473106 , 476604 , 477982 , 478269 , 483777 , 484627 , 484728 , 489309 , 490873 , 490901 , 490996 , 491510 , 491955 , 493194 , 502808 , 511607 , 513655 , 514231 , 514375 , 514457 , 518586 , 518593 , 518597 , 522874 , 524612 , 525337 , 527847 , 528053 , 531313 , 540792 , 544500 , 548056 , 558788 , 559378 , 563198 , 565481 , 572053 , 584168 , 589683 , 597148 , 610197 , 618476 , 625783 , 630177 , 660054 , 663380 , 732069 , 741763 );
Copy