3
13.18 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
569192
409408
804451
467622
443761
637650
641349
805115
696331
600350
416303
484563
623508
823920
814893
816568
614627
595819
641928
784254
790679
627806
674128
681867
697025
617652
603398
748231
820767
581887
551170
696229
597254
632658
801464
748210
395137
545718
672681
589462
642315
600258
784259
748244
404342
401640
814865
527428
533697
552267
559061
601625
588283
733908
650127
689006
561334
642385
628390
540513
581902
637729
444654
666906
635215
639334
]
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 (569192 , 409408 , 804451 , 467622 , 443761 , 637650 , 641349 , 805115 , 696331 , 600350 , 416303 , 484563 , 623508 , 823920 , 814893 , 816568 , 614627 , 595819 , 641928 , 784254 , 790679 , 627806 , 674128 , 681867 , 697025 , 617652 , 603398 , 748231 , 820767 , 581887 , 551170 , 696229 , 597254 , 632658 , 801464 , 748210 , 395137 , 545718 , 672681 , 589462 , 642315 , 600258 , 784259 , 748244 , 404342 , 401640 , 814865 , 527428 , 533697 , 552267 , 559061 , 601625 , 588283 , 733908 , 650127 , 689006 , 561334 , 642385 , 628390 , 540513 , 581902 , 637729 , 444654 , 666906 , 635215 , 639334 );
Copy
4
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
395137
401640
404342
409408
416303
443761
444654
467622
484563
527428
533697
540513
545718
551170
552267
559061
561334
569192
581887
581902
588283
589462
595819
597254
600258
600350
601625
603398
614627
617652
623508
627806
628390
632658
635215
637650
637729
639334
641349
641928
642315
642385
650127
666906
672681
674128
681867
689006
696229
696331
697025
733908
748210
748231
748244
784254
784259
790679
801464
804451
805115
814865
814893
816568
820767
823920
]
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 (395137 , 401640 , 404342 , 409408 , 416303 , 443761 , 444654 , 467622 , 484563 , 527428 , 533697 , 540513 , 545718 , 551170 , 552267 , 559061 , 561334 , 569192 , 581887 , 581902 , 588283 , 589462 , 595819 , 597254 , 600258 , 600350 , 601625 , 603398 , 614627 , 617652 , 623508 , 627806 , 628390 , 632658 , 635215 , 637650 , 637729 , 639334 , 641349 , 641928 , 642315 , 642385 , 650127 , 666906 , 672681 , 674128 , 681867 , 689006 , 696229 , 696331 , 697025 , 733908 , 748210 , 748231 , 748244 , 784254 , 784259 , 790679 , 801464 , 804451 , 805115 , 814865 , 814893 , 816568 , 820767 , 823920 );
Copy
5
84.42 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
395137
401640
404342
409408
416303
443761
444654
467622
484563
527428
533697
540513
545718
551170
552267
559061
561334
569192
581887
581902
588283
589462
595819
597254
600258
600350
601625
603398
614627
617652
623508
627806
628390
632658
635215
637650
637729
639334
641349
641928
642315
642385
650127
666906
672681
674128
681867
689006
696229
696331
697025
733908
748210
748231
748244
784254
784259
790679
801464
804451
805115
814865
814893
816568
820767
823920
]
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 (395137 , 401640 , 404342 , 409408 , 416303 , 443761 , 444654 , 467622 , 484563 , 527428 , 533697 , 540513 , 545718 , 551170 , 552267 , 559061 , 561334 , 569192 , 581887 , 581902 , 588283 , 589462 , 595819 , 597254 , 600258 , 600350 , 601625 , 603398 , 614627 , 617652 , 623508 , 627806 , 628390 , 632658 , 635215 , 637650 , 637729 , 639334 , 641349 , 641928 , 642315 , 642385 , 650127 , 666906 , 672681 , 674128 , 681867 , 689006 , 696229 , 696331 , 697025 , 733908 , 748210 , 748231 , 748244 , 784254 , 784259 , 790679 , 801464 , 804451 , 805115 , 814865 , 814893 , 816568 , 820767 , 823920 );
Copy