3
7.46 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
796760
704684
716807
725426
635794
425738
500524
534832
606914
504751
664212
450990
689279
728862
748586
745006
653583
392436
788180
731097
806281
611910
635872
617800
704185
630072
697866
478788
693155
396556
608633
750848
311007
676159
564524
562445
667183
695867
444212
513567
463091
418441
525237
578189
464194
524814
520456
571007
488240
530528
485257
723164
715234
724481
607007
467295
421648
472840
597857
503389
396590
675374
452248
621348
486944
]
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 (796760 , 704684 , 716807 , 725426 , 635794 , 425738 , 500524 , 534832 , 606914 , 504751 , 664212 , 450990 , 689279 , 728862 , 748586 , 745006 , 653583 , 392436 , 788180 , 731097 , 806281 , 611910 , 635872 , 617800 , 704185 , 630072 , 697866 , 478788 , 693155 , 396556 , 608633 , 750848 , 311007 , 676159 , 564524 , 562445 , 667183 , 695867 , 444212 , 513567 , 463091 , 418441 , 525237 , 578189 , 464194 , 524814 , 520456 , 571007 , 488240 , 530528 , 485257 , 723164 , 715234 , 724481 , 607007 , 467295 , 421648 , 472840 , 597857 , 503389 , 396590 , 675374 , 452248 , 621348 , 486944 );
Copy
4
2.46 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
311007
392436
396556
396590
418441
421648
425738
444212
450990
452248
463091
464194
467295
472840
478788
485257
486944
488240
500524
503389
504751
513567
520456
524814
525237
530528
534832
562445
564524
571007
578189
597857
606914
607007
608633
611910
617800
621348
630072
635794
635872
653583
664212
667183
675374
676159
689279
693155
695867
697866
704185
704684
715234
716807
723164
724481
725426
728862
731097
745006
748586
750848
788180
796760
806281
]
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 (311007 , 392436 , 396556 , 396590 , 418441 , 421648 , 425738 , 444212 , 450990 , 452248 , 463091 , 464194 , 467295 , 472840 , 478788 , 485257 , 486944 , 488240 , 500524 , 503389 , 504751 , 513567 , 520456 , 524814 , 525237 , 530528 , 534832 , 562445 , 564524 , 571007 , 578189 , 597857 , 606914 , 607007 , 608633 , 611910 , 617800 , 621348 , 630072 , 635794 , 635872 , 653583 , 664212 , 667183 , 675374 , 676159 , 689279 , 693155 , 695867 , 697866 , 704185 , 704684 , 715234 , 716807 , 723164 , 724481 , 725426 , 728862 , 731097 , 745006 , 748586 , 750848 , 788180 , 796760 , 806281 );
Copy
5
119.91 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
311007
392436
396556
396590
418441
421648
425738
444212
450990
452248
463091
464194
467295
472840
478788
485257
486944
488240
500524
503389
504751
513567
520456
524814
525237
530528
534832
562445
564524
571007
578189
597857
606914
607007
608633
611910
617800
621348
630072
635794
635872
653583
664212
667183
675374
676159
689279
693155
695867
697866
704185
704684
715234
716807
723164
724481
725426
728862
731097
745006
748586
750848
788180
796760
806281
]
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 (311007 , 392436 , 396556 , 396590 , 418441 , 421648 , 425738 , 444212 , 450990 , 452248 , 463091 , 464194 , 467295 , 472840 , 478788 , 485257 , 486944 , 488240 , 500524 , 503389 , 504751 , 513567 , 520456 , 524814 , 525237 , 530528 , 534832 , 562445 , 564524 , 571007 , 578189 , 597857 , 606914 , 607007 , 608633 , 611910 , 617800 , 621348 , 630072 , 635794 , 635872 , 653583 , 664212 , 667183 , 675374 , 676159 , 689279 , 693155 , 695867 , 697866 , 704185 , 704684 , 715234 , 716807 , 723164 , 724481 , 725426 , 728862 , 731097 , 745006 , 748586 , 750848 , 788180 , 796760 , 806281 );
Copy