3
11.57 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
455746
390684
389150
657244
580207
826127
787687
621161
620938
687441
423592
467840
595806
496793
603067
665475
742348
610066
488706
529512
473507
460451
419873
663412
665379
444601
477875
593840
511143
664957
663441
559030
438067
482583
797078
418215
450474
553411
424701
578308
504679
429954
466907
445608
479661
471605
505376
519240
405531
484670
583558
535282
522549
546766
663956
559865
521973
597148
454709
484681
472956
542434
665107
639060
]
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 (455746 , 390684 , 389150 , 657244 , 580207 , 826127 , 787687 , 621161 , 620938 , 687441 , 423592 , 467840 , 595806 , 496793 , 603067 , 665475 , 742348 , 610066 , 488706 , 529512 , 473507 , 460451 , 419873 , 663412 , 665379 , 444601 , 477875 , 593840 , 511143 , 664957 , 663441 , 559030 , 438067 , 482583 , 797078 , 418215 , 450474 , 553411 , 424701 , 578308 , 504679 , 429954 , 466907 , 445608 , 479661 , 471605 , 505376 , 519240 , 405531 , 484670 , 583558 , 535282 , 522549 , 546766 , 663956 , 559865 , 521973 , 597148 , 454709 , 484681 , 472956 , 542434 , 665107 , 639060 );
Copy
4
2.53 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
389150
390684
405531
418215
419873
423592
424701
429954
438067
444601
445608
450474
454709
455746
460451
466907
467840
471605
472956
473507
477875
479661
482583
484670
484681
488706
496793
504679
505376
511143
519240
521973
522549
529512
535282
542434
546766
553411
559030
559865
578308
580207
583558
593840
595806
597148
603067
610066
620938
621161
639060
657244
663412
663441
663956
664957
665107
665379
665475
687441
742348
787687
797078
826127
]
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 (389150 , 390684 , 405531 , 418215 , 419873 , 423592 , 424701 , 429954 , 438067 , 444601 , 445608 , 450474 , 454709 , 455746 , 460451 , 466907 , 467840 , 471605 , 472956 , 473507 , 477875 , 479661 , 482583 , 484670 , 484681 , 488706 , 496793 , 504679 , 505376 , 511143 , 519240 , 521973 , 522549 , 529512 , 535282 , 542434 , 546766 , 553411 , 559030 , 559865 , 578308 , 580207 , 583558 , 593840 , 595806 , 597148 , 603067 , 610066 , 620938 , 621161 , 639060 , 657244 , 663412 , 663441 , 663956 , 664957 , 665107 , 665379 , 665475 , 687441 , 742348 , 787687 , 797078 , 826127 );
Copy
5
77.50 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
389150
390684
405531
418215
419873
423592
424701
429954
438067
444601
445608
450474
454709
455746
460451
466907
467840
471605
472956
473507
477875
479661
482583
484670
484681
488706
496793
504679
505376
511143
519240
521973
522549
529512
535282
542434
546766
553411
559030
559865
578308
580207
583558
593840
595806
597148
603067
610066
620938
621161
639060
657244
663412
663441
663956
664957
665107
665379
665475
687441
742348
787687
797078
826127
]
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 (389150 , 390684 , 405531 , 418215 , 419873 , 423592 , 424701 , 429954 , 438067 , 444601 , 445608 , 450474 , 454709 , 455746 , 460451 , 466907 , 467840 , 471605 , 472956 , 473507 , 477875 , 479661 , 482583 , 484670 , 484681 , 488706 , 496793 , 504679 , 505376 , 511143 , 519240 , 521973 , 522549 , 529512 , 535282 , 542434 , 546766 , 553411 , 559030 , 559865 , 578308 , 580207 , 583558 , 593840 , 595806 , 597148 , 603067 , 610066 , 620938 , 621161 , 639060 , 657244 , 663412 , 663441 , 663956 , 664957 , 665107 , 665379 , 665475 , 687441 , 742348 , 787687 , 797078 , 826127 );
Copy