3
11.42 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
383773
740821
518933
554251
282652
486909
577350
566524
470796
618895
485105
392393
571201
511725
558614
515107
528899
482785
622888
618906
604732
472471
393771
523754
602926
402245
741454
757962
400430
512136
530521
538478
461903
582218
559150
568578
614244
569673
528075
487917
484165
546747
624859
633312
571383
442747
556072
612409
519889
486691
469846
491072
580256
576720
484126
549335
610595
446615
572029
567142
515128
464326
508375
521001
]
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 (383773 , 740821 , 518933 , 554251 , 282652 , 486909 , 577350 , 566524 , 470796 , 618895 , 485105 , 392393 , 571201 , 511725 , 558614 , 515107 , 528899 , 482785 , 622888 , 618906 , 604732 , 472471 , 393771 , 523754 , 602926 , 402245 , 741454 , 757962 , 400430 , 512136 , 530521 , 538478 , 461903 , 582218 , 559150 , 568578 , 614244 , 569673 , 528075 , 487917 , 484165 , 546747 , 624859 , 633312 , 571383 , 442747 , 556072 , 612409 , 519889 , 486691 , 469846 , 491072 , 580256 , 576720 , 484126 , 549335 , 610595 , 446615 , 572029 , 567142 , 515128 , 464326 , 508375 , 521001 );
Copy
4
3.68 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
282652
383773
392393
393771
400430
402245
442747
446615
461903
464326
469846
470796
472471
482785
484126
484165
485105
486691
486909
487917
491072
508375
511725
512136
515107
515128
518933
519889
521001
523754
528075
528899
530521
538478
546747
549335
554251
556072
558614
559150
566524
567142
568578
569673
571201
571383
572029
576720
577350
580256
582218
602926
604732
610595
612409
614244
618895
618906
622888
624859
633312
740821
741454
757962
]
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 (282652 , 383773 , 392393 , 393771 , 400430 , 402245 , 442747 , 446615 , 461903 , 464326 , 469846 , 470796 , 472471 , 482785 , 484126 , 484165 , 485105 , 486691 , 486909 , 487917 , 491072 , 508375 , 511725 , 512136 , 515107 , 515128 , 518933 , 519889 , 521001 , 523754 , 528075 , 528899 , 530521 , 538478 , 546747 , 549335 , 554251 , 556072 , 558614 , 559150 , 566524 , 567142 , 568578 , 569673 , 571201 , 571383 , 572029 , 576720 , 577350 , 580256 , 582218 , 602926 , 604732 , 610595 , 612409 , 614244 , 618895 , 618906 , 622888 , 624859 , 633312 , 740821 , 741454 , 757962 );
Copy
5
96.54 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
282652
383773
392393
393771
400430
402245
442747
446615
461903
464326
469846
470796
472471
482785
484126
484165
485105
486691
486909
487917
491072
508375
511725
512136
515107
515128
518933
519889
521001
523754
528075
528899
530521
538478
546747
549335
554251
556072
558614
559150
566524
567142
568578
569673
571201
571383
572029
576720
577350
580256
582218
602926
604732
610595
612409
614244
618895
618906
622888
624859
633312
740821
741454
757962
]
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 (282652 , 383773 , 392393 , 393771 , 400430 , 402245 , 442747 , 446615 , 461903 , 464326 , 469846 , 470796 , 472471 , 482785 , 484126 , 484165 , 485105 , 486691 , 486909 , 487917 , 491072 , 508375 , 511725 , 512136 , 515107 , 515128 , 518933 , 519889 , 521001 , 523754 , 528075 , 528899 , 530521 , 538478 , 546747 , 549335 , 554251 , 556072 , 558614 , 559150 , 566524 , 567142 , 568578 , 569673 , 571201 , 571383 , 572029 , 576720 , 577350 , 580256 , 582218 , 602926 , 604732 , 610595 , 612409 , 614244 , 618895 , 618906 , 622888 , 624859 , 633312 , 740821 , 741454 , 757962 );
Copy