3
10.66 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
416031
706607
482328
397219
728887
562450
393783
469844
679245
698048
780316
627206
603779
801853
582079
775650
474433
407887
411960
596537
797592
384808
583821
796507
461147
714521
505068
483598
549775
805687
492675
644800
398224
474569
529545
595357
771545
490894
470916
634475
576325
607719
490044
523316
414756
470388
484621
647026
519262
504124
507778
687006
578376
532665
541593
478668
605499
481346
426544
578467
514741
484383
424437
541620
465024
585725
648853
541688
574149
582236
542956
596515
541594
542199
]
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 (416031 , 706607 , 482328 , 397219 , 728887 , 562450 , 393783 , 469844 , 679245 , 698048 , 780316 , 627206 , 603779 , 801853 , 582079 , 775650 , 474433 , 407887 , 411960 , 596537 , 797592 , 384808 , 583821 , 796507 , 461147 , 714521 , 505068 , 483598 , 549775 , 805687 , 492675 , 644800 , 398224 , 474569 , 529545 , 595357 , 771545 , 490894 , 470916 , 634475 , 576325 , 607719 , 490044 , 523316 , 414756 , 470388 , 484621 , 647026 , 519262 , 504124 , 507778 , 687006 , 578376 , 532665 , 541593 , 478668 , 605499 , 481346 , 426544 , 578467 , 514741 , 484383 , 424437 , 541620 , 465024 , 585725 , 648853 , 541688 , 574149 , 582236 , 542956 , 596515 , 541594 , 542199 );
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
384808
393783
397219
398224
407887
411960
414756
416031
424437
426544
461147
465024
469844
470388
470916
474433
474569
478668
481346
482328
483598
484383
484621
490044
490894
492675
504124
505068
507778
514741
519262
523316
529545
532665
541593
541594
541620
541688
542199
542956
549775
562450
574149
576325
578376
578467
582079
582236
583821
585725
595357
596515
596537
603779
605499
607719
627206
634475
644800
647026
648853
679245
687006
698048
706607
714521
728887
771545
775650
780316
796507
797592
801853
805687
]
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 (384808 , 393783 , 397219 , 398224 , 407887 , 411960 , 414756 , 416031 , 424437 , 426544 , 461147 , 465024 , 469844 , 470388 , 470916 , 474433 , 474569 , 478668 , 481346 , 482328 , 483598 , 484383 , 484621 , 490044 , 490894 , 492675 , 504124 , 505068 , 507778 , 514741 , 519262 , 523316 , 529545 , 532665 , 541593 , 541594 , 541620 , 541688 , 542199 , 542956 , 549775 , 562450 , 574149 , 576325 , 578376 , 578467 , 582079 , 582236 , 583821 , 585725 , 595357 , 596515 , 596537 , 603779 , 605499 , 607719 , 627206 , 634475 , 644800 , 647026 , 648853 , 679245 , 687006 , 698048 , 706607 , 714521 , 728887 , 771545 , 775650 , 780316 , 796507 , 797592 , 801853 , 805687 );
Copy
5
78.44 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
384808
393783
397219
398224
407887
411960
414756
416031
424437
426544
461147
465024
469844
470388
470916
474433
474569
478668
481346
482328
483598
484383
484621
490044
490894
492675
504124
505068
507778
514741
519262
523316
529545
532665
541593
541594
541620
541688
542199
542956
549775
562450
574149
576325
578376
578467
582079
582236
583821
585725
595357
596515
596537
603779
605499
607719
627206
634475
644800
647026
648853
679245
687006
698048
706607
714521
728887
771545
775650
780316
796507
797592
801853
805687
]
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 (384808 , 393783 , 397219 , 398224 , 407887 , 411960 , 414756 , 416031 , 424437 , 426544 , 461147 , 465024 , 469844 , 470388 , 470916 , 474433 , 474569 , 478668 , 481346 , 482328 , 483598 , 484383 , 484621 , 490044 , 490894 , 492675 , 504124 , 505068 , 507778 , 514741 , 519262 , 523316 , 529545 , 532665 , 541593 , 541594 , 541620 , 541688 , 542199 , 542956 , 549775 , 562450 , 574149 , 576325 , 578376 , 578467 , 582079 , 582236 , 583821 , 585725 , 595357 , 596515 , 596537 , 603779 , 605499 , 607719 , 627206 , 634475 , 644800 , 647026 , 648853 , 679245 , 687006 , 698048 , 706607 , 714521 , 728887 , 771545 , 775650 , 780316 , 796507 , 797592 , 801853 , 805687 );
Copy