3
8.35 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
773381
590832
704654
518366
473781
795315
607814
756551
727739
719957
773421
697491
731247
506287
719454
773268
711870
731346
590802
727745
749282
740854
609848
588014
779730
516721
667167
736231
731280
779681
565557
731311
441424
604287
736241
635900
448636
560643
814457
796180
464837
396334
424646
464811
523541
534494
390508
577816
558566
510553
622233
423650
501598
456452
619965
428756
537970
686748
427981
516682
649185
617212
]
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 (773381 , 590832 , 704654 , 518366 , 473781 , 795315 , 607814 , 756551 , 727739 , 719957 , 773421 , 697491 , 731247 , 506287 , 719454 , 773268 , 711870 , 731346 , 590802 , 727745 , 749282 , 740854 , 609848 , 588014 , 779730 , 516721 , 667167 , 736231 , 731280 , 779681 , 565557 , 731311 , 441424 , 604287 , 736241 , 635900 , 448636 , 560643 , 814457 , 796180 , 464837 , 396334 , 424646 , 464811 , 523541 , 534494 , 390508 , 577816 , 558566 , 510553 , 622233 , 423650 , 501598 , 456452 , 619965 , 428756 , 537970 , 686748 , 427981 , 516682 , 649185 , 617212 );
Copy
4
2.21 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
390508
396334
423650
424646
427981
428756
441424
448636
456452
464811
464837
473781
501598
506287
510553
516682
516721
518366
523541
534494
537970
558566
560643
565557
577816
588014
590802
590832
604287
607814
609848
617212
619965
622233
635900
649185
667167
686748
697491
704654
711870
719454
719957
727739
727745
731247
731280
731311
731346
736231
736241
740854
749282
756551
773268
773381
773421
779681
779730
795315
796180
814457
]
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 (390508 , 396334 , 423650 , 424646 , 427981 , 428756 , 441424 , 448636 , 456452 , 464811 , 464837 , 473781 , 501598 , 506287 , 510553 , 516682 , 516721 , 518366 , 523541 , 534494 , 537970 , 558566 , 560643 , 565557 , 577816 , 588014 , 590802 , 590832 , 604287 , 607814 , 609848 , 617212 , 619965 , 622233 , 635900 , 649185 , 667167 , 686748 , 697491 , 704654 , 711870 , 719454 , 719957 , 727739 , 727745 , 731247 , 731280 , 731311 , 731346 , 736231 , 736241 , 740854 , 749282 , 756551 , 773268 , 773381 , 773421 , 779681 , 779730 , 795315 , 796180 , 814457 );
Copy
5
73.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
390508
396334
423650
424646
427981
428756
441424
448636
456452
464811
464837
473781
501598
506287
510553
516682
516721
518366
523541
534494
537970
558566
560643
565557
577816
588014
590802
590832
604287
607814
609848
617212
619965
622233
635900
649185
667167
686748
697491
704654
711870
719454
719957
727739
727745
731247
731280
731311
731346
736231
736241
740854
749282
756551
773268
773381
773421
779681
779730
795315
796180
814457
]
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 (390508 , 396334 , 423650 , 424646 , 427981 , 428756 , 441424 , 448636 , 456452 , 464811 , 464837 , 473781 , 501598 , 506287 , 510553 , 516682 , 516721 , 518366 , 523541 , 534494 , 537970 , 558566 , 560643 , 565557 , 577816 , 588014 , 590802 , 590832 , 604287 , 607814 , 609848 , 617212 , 619965 , 622233 , 635900 , 649185 , 667167 , 686748 , 697491 , 704654 , 711870 , 719454 , 719957 , 727739 , 727745 , 731247 , 731280 , 731311 , 731346 , 736231 , 736241 , 740854 , 749282 , 756551 , 773268 , 773381 , 773421 , 779681 , 779730 , 795315 , 796180 , 814457 );
Copy