3
17.01 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
524979
513324
514768
527412
495163
521971
523003
499776
540996
561704
617023
620100
621643
603102
521043
501655
511231
814072
490198
528146
520739
498054
550976
659562
597501
597946
597146
434353
420559
462372
501641
522525
487713
517369
453337
459535
448094
473472
659842
601491
593975
644023
611310
431448
604743
643595
599450
614609
498039
649185
515545
514717
563887
651933
601677
611289
590403
611645
636869
606002
626978
443320
464062
501119
526248
568450
561907
]
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 (524979 , 513324 , 514768 , 527412 , 495163 , 521971 , 523003 , 499776 , 540996 , 561704 , 617023 , 620100 , 621643 , 603102 , 521043 , 501655 , 511231 , 814072 , 490198 , 528146 , 520739 , 498054 , 550976 , 659562 , 597501 , 597946 , 597146 , 434353 , 420559 , 462372 , 501641 , 522525 , 487713 , 517369 , 453337 , 459535 , 448094 , 473472 , 659842 , 601491 , 593975 , 644023 , 611310 , 431448 , 604743 , 643595 , 599450 , 614609 , 498039 , 649185 , 515545 , 514717 , 563887 , 651933 , 601677 , 611289 , 590403 , 611645 , 636869 , 606002 , 626978 , 443320 , 464062 , 501119 , 526248 , 568450 , 561907 );
Copy
4
2.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
420559
431448
434353
443320
448094
453337
459535
462372
464062
473472
487713
490198
495163
498039
498054
499776
501119
501641
501655
511231
513324
514717
514768
515545
517369
520739
521043
521971
522525
523003
524979
526248
527412
528146
540996
550976
561704
561907
563887
568450
590403
593975
597146
597501
597946
599450
601491
601677
603102
604743
606002
611289
611310
611645
614609
617023
620100
621643
626978
636869
643595
644023
649185
651933
659562
659842
814072
]
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 (420559 , 431448 , 434353 , 443320 , 448094 , 453337 , 459535 , 462372 , 464062 , 473472 , 487713 , 490198 , 495163 , 498039 , 498054 , 499776 , 501119 , 501641 , 501655 , 511231 , 513324 , 514717 , 514768 , 515545 , 517369 , 520739 , 521043 , 521971 , 522525 , 523003 , 524979 , 526248 , 527412 , 528146 , 540996 , 550976 , 561704 , 561907 , 563887 , 568450 , 590403 , 593975 , 597146 , 597501 , 597946 , 599450 , 601491 , 601677 , 603102 , 604743 , 606002 , 611289 , 611310 , 611645 , 614609 , 617023 , 620100 , 621643 , 626978 , 636869 , 643595 , 644023 , 649185 , 651933 , 659562 , 659842 , 814072 );
Copy
5
84.43 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
420559
431448
434353
443320
448094
453337
459535
462372
464062
473472
487713
490198
495163
498039
498054
499776
501119
501641
501655
511231
513324
514717
514768
515545
517369
520739
521043
521971
522525
523003
524979
526248
527412
528146
540996
550976
561704
561907
563887
568450
590403
593975
597146
597501
597946
599450
601491
601677
603102
604743
606002
611289
611310
611645
614609
617023
620100
621643
626978
636869
643595
644023
649185
651933
659562
659842
814072
]
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 (420559 , 431448 , 434353 , 443320 , 448094 , 453337 , 459535 , 462372 , 464062 , 473472 , 487713 , 490198 , 495163 , 498039 , 498054 , 499776 , 501119 , 501641 , 501655 , 511231 , 513324 , 514717 , 514768 , 515545 , 517369 , 520739 , 521043 , 521971 , 522525 , 523003 , 524979 , 526248 , 527412 , 528146 , 540996 , 550976 , 561704 , 561907 , 563887 , 568450 , 590403 , 593975 , 597146 , 597501 , 597946 , 599450 , 601491 , 601677 , 603102 , 604743 , 606002 , 611289 , 611310 , 611645 , 614609 , 617023 , 620100 , 621643 , 626978 , 636869 , 643595 , 644023 , 649185 , 651933 , 659562 , 659842 , 814072 );
Copy