3
12.58 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
827602
800612
728205
720058
653620
606548
387885
676788
532681
787676
795739
696289
548919
775857
532659
532670
649094
676345
676825
787667
662164
659042
417836
496355
634305
605525
676883
545408
694154
618544
495766
533801
401602
595785
506813
758280
548756
557978
595782
545642
509495
694166
460418
676887
607058
798443
595817
462539
640154
543416
504139
514119
473242
680216
483371
457784
595944
497539
578413
504201
644748
506820
589224
566439
495703
543374
456455
483388
462315
557985
453906
545718
501248
622184
]
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 (827602 , 800612 , 728205 , 720058 , 653620 , 606548 , 387885 , 676788 , 532681 , 787676 , 795739 , 696289 , 548919 , 775857 , 532659 , 532670 , 649094 , 676345 , 676825 , 787667 , 662164 , 659042 , 417836 , 496355 , 634305 , 605525 , 676883 , 545408 , 694154 , 618544 , 495766 , 533801 , 401602 , 595785 , 506813 , 758280 , 548756 , 557978 , 595782 , 545642 , 509495 , 694166 , 460418 , 676887 , 607058 , 798443 , 595817 , 462539 , 640154 , 543416 , 504139 , 514119 , 473242 , 680216 , 483371 , 457784 , 595944 , 497539 , 578413 , 504201 , 644748 , 506820 , 589224 , 566439 , 495703 , 543374 , 456455 , 483388 , 462315 , 557985 , 453906 , 545718 , 501248 , 622184 );
Copy
4
2.42 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
387885
401602
417836
453906
456455
457784
460418
462315
462539
473242
483371
483388
495703
495766
496355
497539
501248
504139
504201
506813
506820
509495
514119
532659
532670
532681
533801
543374
543416
545408
545642
545718
548756
548919
557978
557985
566439
578413
589224
595782
595785
595817
595944
605525
606548
607058
618544
622184
634305
640154
644748
649094
653620
659042
662164
676345
676788
676825
676883
676887
680216
694154
694166
696289
720058
728205
758280
775857
787667
787676
795739
798443
800612
827602
]
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 (387885 , 401602 , 417836 , 453906 , 456455 , 457784 , 460418 , 462315 , 462539 , 473242 , 483371 , 483388 , 495703 , 495766 , 496355 , 497539 , 501248 , 504139 , 504201 , 506813 , 506820 , 509495 , 514119 , 532659 , 532670 , 532681 , 533801 , 543374 , 543416 , 545408 , 545642 , 545718 , 548756 , 548919 , 557978 , 557985 , 566439 , 578413 , 589224 , 595782 , 595785 , 595817 , 595944 , 605525 , 606548 , 607058 , 618544 , 622184 , 634305 , 640154 , 644748 , 649094 , 653620 , 659042 , 662164 , 676345 , 676788 , 676825 , 676883 , 676887 , 680216 , 694154 , 694166 , 696289 , 720058 , 728205 , 758280 , 775857 , 787667 , 787676 , 795739 , 798443 , 800612 , 827602 );
Copy
5
108.90 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
387885
401602
417836
453906
456455
457784
460418
462315
462539
473242
483371
483388
495703
495766
496355
497539
501248
504139
504201
506813
506820
509495
514119
532659
532670
532681
533801
543374
543416
545408
545642
545718
548756
548919
557978
557985
566439
578413
589224
595782
595785
595817
595944
605525
606548
607058
618544
622184
634305
640154
644748
649094
653620
659042
662164
676345
676788
676825
676883
676887
680216
694154
694166
696289
720058
728205
758280
775857
787667
787676
795739
798443
800612
827602
]
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 (387885 , 401602 , 417836 , 453906 , 456455 , 457784 , 460418 , 462315 , 462539 , 473242 , 483371 , 483388 , 495703 , 495766 , 496355 , 497539 , 501248 , 504139 , 504201 , 506813 , 506820 , 509495 , 514119 , 532659 , 532670 , 532681 , 533801 , 543374 , 543416 , 545408 , 545642 , 545718 , 548756 , 548919 , 557978 , 557985 , 566439 , 578413 , 589224 , 595782 , 595785 , 595817 , 595944 , 605525 , 606548 , 607058 , 618544 , 622184 , 634305 , 640154 , 644748 , 649094 , 653620 , 659042 , 662164 , 676345 , 676788 , 676825 , 676883 , 676887 , 680216 , 694154 , 694166 , 696289 , 720058 , 728205 , 758280 , 775857 , 787667 , 787676 , 795739 , 798443 , 800612 , 827602 );
Copy