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