3
12.05 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
646244
413008
634561
599967
467381
624799
402092
630639
426066
766524
382017
693900
742904
421561
467375
442935
421567
819607
409627
402664
406711
447721
467364
744572
402666
467392
419896
456060
453503
720803
467347
402719
402657
484495
385538
420152
487376
554137
585839
800316
467380
491458
446977
498501
548833
648634
595945
725409
472766
447262
454502
439892
467374
548903
587483
748684
431962
512749
512042
503546
559389
428758
559392
630524
421566
532747
590514
624930
402698
543659
603971
545480
]
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 (646244 , 413008 , 634561 , 599967 , 467381 , 624799 , 402092 , 630639 , 426066 , 766524 , 382017 , 693900 , 742904 , 421561 , 467375 , 442935 , 421567 , 819607 , 409627 , 402664 , 406711 , 447721 , 467364 , 744572 , 402666 , 467392 , 419896 , 456060 , 453503 , 720803 , 467347 , 402719 , 402657 , 484495 , 385538 , 420152 , 487376 , 554137 , 585839 , 800316 , 467380 , 491458 , 446977 , 498501 , 548833 , 648634 , 595945 , 725409 , 472766 , 447262 , 454502 , 439892 , 467374 , 548903 , 587483 , 748684 , 431962 , 512749 , 512042 , 503546 , 559389 , 428758 , 559392 , 630524 , 421566 , 532747 , 590514 , 624930 , 402698 , 543659 , 603971 , 545480 );
Copy
4
2.32 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
382017
385538
402092
402657
402664
402666
402698
402719
406711
409627
413008
419896
420152
421561
421566
421567
426066
428758
431962
439892
442935
446977
447262
447721
453503
454502
456060
467347
467364
467374
467375
467380
467381
467392
472766
484495
487376
491458
498501
503546
512042
512749
532747
543659
545480
548833
548903
554137
559389
559392
585839
587483
590514
595945
599967
603971
624799
624930
630524
630639
634561
646244
648634
693900
720803
725409
742904
744572
748684
766524
800316
819607
]
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 (382017 , 385538 , 402092 , 402657 , 402664 , 402666 , 402698 , 402719 , 406711 , 409627 , 413008 , 419896 , 420152 , 421561 , 421566 , 421567 , 426066 , 428758 , 431962 , 439892 , 442935 , 446977 , 447262 , 447721 , 453503 , 454502 , 456060 , 467347 , 467364 , 467374 , 467375 , 467380 , 467381 , 467392 , 472766 , 484495 , 487376 , 491458 , 498501 , 503546 , 512042 , 512749 , 532747 , 543659 , 545480 , 548833 , 548903 , 554137 , 559389 , 559392 , 585839 , 587483 , 590514 , 595945 , 599967 , 603971 , 624799 , 624930 , 630524 , 630639 , 634561 , 646244 , 648634 , 693900 , 720803 , 725409 , 742904 , 744572 , 748684 , 766524 , 800316 , 819607 );
Copy
5
103.83 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
382017
385538
402092
402657
402664
402666
402698
402719
406711
409627
413008
419896
420152
421561
421566
421567
426066
428758
431962
439892
442935
446977
447262
447721
453503
454502
456060
467347
467364
467374
467375
467380
467381
467392
472766
484495
487376
491458
498501
503546
512042
512749
532747
543659
545480
548833
548903
554137
559389
559392
585839
587483
590514
595945
599967
603971
624799
624930
630524
630639
634561
646244
648634
693900
720803
725409
742904
744572
748684
766524
800316
819607
]
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 (382017 , 385538 , 402092 , 402657 , 402664 , 402666 , 402698 , 402719 , 406711 , 409627 , 413008 , 419896 , 420152 , 421561 , 421566 , 421567 , 426066 , 428758 , 431962 , 439892 , 442935 , 446977 , 447262 , 447721 , 453503 , 454502 , 456060 , 467347 , 467364 , 467374 , 467375 , 467380 , 467381 , 467392 , 472766 , 484495 , 487376 , 491458 , 498501 , 503546 , 512042 , 512749 , 532747 , 543659 , 545480 , 548833 , 548903 , 554137 , 559389 , 559392 , 585839 , 587483 , 590514 , 595945 , 599967 , 603971 , 624799 , 624930 , 630524 , 630639 , 634561 , 646244 , 648634 , 693900 , 720803 , 725409 , 742904 , 744572 , 748684 , 766524 , 800316 , 819607 );
Copy