4
12.00 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
812279
626618
553593
396418
827025
568211
553135
599829
642995
415894
409085
545491
824683
752223
811844
553600
442704
820858
553160
719435
715413
641753
415556
456635
751354
641313
415543
592604
495172
442645
442650
546972
554372
602993
426480
432692
499587
615721
451090
568293
751422
396860
494677
792722
804422
580230
742348
509427
553545
383948
481772
467760
415557
451598
568274
595867
451089
456633
436758
521353
405709
516772
470442
415544
450799
471620
599987
]
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 (812279 , 626618 , 553593 , 396418 , 827025 , 568211 , 553135 , 599829 , 642995 , 415894 , 409085 , 545491 , 824683 , 752223 , 811844 , 553600 , 442704 , 820858 , 553160 , 719435 , 715413 , 641753 , 415556 , 456635 , 751354 , 641313 , 415543 , 592604 , 495172 , 442645 , 442650 , 546972 , 554372 , 602993 , 426480 , 432692 , 499587 , 615721 , 451090 , 568293 , 751422 , 396860 , 494677 , 792722 , 804422 , 580230 , 742348 , 509427 , 553545 , 383948 , 481772 , 467760 , 415557 , 451598 , 568274 , 595867 , 451089 , 456633 , 436758 , 521353 , 405709 , 516772 , 470442 , 415544 , 450799 , 471620 , 599987 );
Copy
5
3.25 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
383948
396418
396860
405709
409085
415543
415544
415556
415557
415894
426480
432692
436758
442645
442650
442704
450799
451089
451090
451598
456633
456635
467760
470442
471620
481772
494677
495172
499587
509427
516772
521353
545491
546972
553135
553160
553545
553593
553600
554372
568211
568274
568293
580230
592604
595867
599829
599987
602993
615721
626618
641313
641753
642995
715413
719435
742348
751354
751422
752223
792722
804422
811844
812279
820858
824683
827025
]
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 (383948 , 396418 , 396860 , 405709 , 409085 , 415543 , 415544 , 415556 , 415557 , 415894 , 426480 , 432692 , 436758 , 442645 , 442650 , 442704 , 450799 , 451089 , 451090 , 451598 , 456633 , 456635 , 467760 , 470442 , 471620 , 481772 , 494677 , 495172 , 499587 , 509427 , 516772 , 521353 , 545491 , 546972 , 553135 , 553160 , 553545 , 553593 , 553600 , 554372 , 568211 , 568274 , 568293 , 580230 , 592604 , 595867 , 599829 , 599987 , 602993 , 615721 , 626618 , 641313 , 641753 , 642995 , 715413 , 719435 , 742348 , 751354 , 751422 , 752223 , 792722 , 804422 , 811844 , 812279 , 820858 , 824683 , 827025 );
Copy
6
94.07 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
383948
396418
396860
405709
409085
415543
415544
415556
415557
415894
426480
432692
436758
442645
442650
442704
450799
451089
451090
451598
456633
456635
467760
470442
471620
481772
494677
495172
499587
509427
516772
521353
545491
546972
553135
553160
553545
553593
553600
554372
568211
568274
568293
580230
592604
595867
599829
599987
602993
615721
626618
641313
641753
642995
715413
719435
742348
751354
751422
752223
792722
804422
811844
812279
820858
824683
827025
]
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 (383948 , 396418 , 396860 , 405709 , 409085 , 415543 , 415544 , 415556 , 415557 , 415894 , 426480 , 432692 , 436758 , 442645 , 442650 , 442704 , 450799 , 451089 , 451090 , 451598 , 456633 , 456635 , 467760 , 470442 , 471620 , 481772 , 494677 , 495172 , 499587 , 509427 , 516772 , 521353 , 545491 , 546972 , 553135 , 553160 , 553545 , 553593 , 553600 , 554372 , 568211 , 568274 , 568293 , 580230 , 592604 , 595867 , 599829 , 599987 , 602993 , 615721 , 626618 , 641313 , 641753 , 642995 , 715413 , 719435 , 742348 , 751354 , 751422 , 752223 , 792722 , 804422 , 811844 , 812279 , 820858 , 824683 , 827025 );
Copy