3
8.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
592560
575910
592173
602164
589296
588608
814187
792375
804131
804205
802939
785163
758583
786530
662860
589977
702695
424224
712415
626470
784482
750407
773322
768861
785086
637208
402379
813369
784651
806474
421303
785780
577531
774699
468601
382081
403869
437496
435879
778248
406945
592801
569641
495041
583589
592656
773318
446981
493396
499711
523382
584053
435221
497037
466460
437624
587286
497426
516602
516291
639060
624473
813365
513815
449590
804865
511306
802734
596360
]
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 (592560 , 575910 , 592173 , 602164 , 589296 , 588608 , 814187 , 792375 , 804131 , 804205 , 802939 , 785163 , 758583 , 786530 , 662860 , 589977 , 702695 , 424224 , 712415 , 626470 , 784482 , 750407 , 773322 , 768861 , 785086 , 637208 , 402379 , 813369 , 784651 , 806474 , 421303 , 785780 , 577531 , 774699 , 468601 , 382081 , 403869 , 437496 , 435879 , 778248 , 406945 , 592801 , 569641 , 495041 , 583589 , 592656 , 773318 , 446981 , 493396 , 499711 , 523382 , 584053 , 435221 , 497037 , 466460 , 437624 , 587286 , 497426 , 516602 , 516291 , 639060 , 624473 , 813365 , 513815 , 449590 , 804865 , 511306 , 802734 , 596360 );
Copy
4
2.87 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
382081
402379
403869
406945
421303
424224
435221
435879
437496
437624
446981
449590
466460
468601
493396
495041
497037
497426
499711
511306
513815
516291
516602
523382
569641
575910
577531
583589
584053
587286
588608
589296
589977
592173
592560
592656
592801
596360
602164
624473
626470
637208
639060
662860
702695
712415
750407
758583
768861
773318
773322
774699
778248
784482
784651
785086
785163
785780
786530
792375
802734
802939
804131
804205
804865
806474
813365
813369
814187
]
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 (382081 , 402379 , 403869 , 406945 , 421303 , 424224 , 435221 , 435879 , 437496 , 437624 , 446981 , 449590 , 466460 , 468601 , 493396 , 495041 , 497037 , 497426 , 499711 , 511306 , 513815 , 516291 , 516602 , 523382 , 569641 , 575910 , 577531 , 583589 , 584053 , 587286 , 588608 , 589296 , 589977 , 592173 , 592560 , 592656 , 592801 , 596360 , 602164 , 624473 , 626470 , 637208 , 639060 , 662860 , 702695 , 712415 , 750407 , 758583 , 768861 , 773318 , 773322 , 774699 , 778248 , 784482 , 784651 , 785086 , 785163 , 785780 , 786530 , 792375 , 802734 , 802939 , 804131 , 804205 , 804865 , 806474 , 813365 , 813369 , 814187 );
Copy
5
115.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
382081
402379
403869
406945
421303
424224
435221
435879
437496
437624
446981
449590
466460
468601
493396
495041
497037
497426
499711
511306
513815
516291
516602
523382
569641
575910
577531
583589
584053
587286
588608
589296
589977
592173
592560
592656
592801
596360
602164
624473
626470
637208
639060
662860
702695
712415
750407
758583
768861
773318
773322
774699
778248
784482
784651
785086
785163
785780
786530
792375
802734
802939
804131
804205
804865
806474
813365
813369
814187
]
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 (382081 , 402379 , 403869 , 406945 , 421303 , 424224 , 435221 , 435879 , 437496 , 437624 , 446981 , 449590 , 466460 , 468601 , 493396 , 495041 , 497037 , 497426 , 499711 , 511306 , 513815 , 516291 , 516602 , 523382 , 569641 , 575910 , 577531 , 583589 , 584053 , 587286 , 588608 , 589296 , 589977 , 592173 , 592560 , 592656 , 592801 , 596360 , 602164 , 624473 , 626470 , 637208 , 639060 , 662860 , 702695 , 712415 , 750407 , 758583 , 768861 , 773318 , 773322 , 774699 , 778248 , 784482 , 784651 , 785086 , 785163 , 785780 , 786530 , 792375 , 802734 , 802939 , 804131 , 804205 , 804865 , 806474 , 813365 , 813369 , 814187 );
Copy