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