3
10.76 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
722014
389000
485449
634363
427057
613158
751169
650258
383832
635751
680933
688999
568721
749359
523940
383948
464295
680937
585250
724126
459171
469227
584774
614865
613463
590730
601828
619508
823063
383539
514980
555317
577409
556856
543679
406652
419914
486962
523934
476475
457643
672761
457774
435324
521913
474299
517428
391600
818815
484923
572603
517626
513828
388800
427395
462644
549327
565095
482256
444972
416083
458991
]
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 (722014 , 389000 , 485449 , 634363 , 427057 , 613158 , 751169 , 650258 , 383832 , 635751 , 680933 , 688999 , 568721 , 749359 , 523940 , 383948 , 464295 , 680937 , 585250 , 724126 , 459171 , 469227 , 584774 , 614865 , 613463 , 590730 , 601828 , 619508 , 823063 , 383539 , 514980 , 555317 , 577409 , 556856 , 543679 , 406652 , 419914 , 486962 , 523934 , 476475 , 457643 , 672761 , 457774 , 435324 , 521913 , 474299 , 517428 , 391600 , 818815 , 484923 , 572603 , 517626 , 513828 , 388800 , 427395 , 462644 , 549327 , 565095 , 482256 , 444972 , 416083 , 458991 );
Copy
4
2.04 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
383539
383832
383948
388800
389000
391600
406652
416083
419914
427057
427395
435324
444972
457643
457774
458991
459171
462644
464295
469227
474299
476475
482256
484923
485449
486962
513828
514980
517428
517626
521913
523934
523940
543679
549327
555317
556856
565095
568721
572603
577409
584774
585250
590730
601828
613158
613463
614865
619508
634363
635751
650258
672761
680933
680937
688999
722014
724126
749359
751169
818815
823063
]
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 (383539 , 383832 , 383948 , 388800 , 389000 , 391600 , 406652 , 416083 , 419914 , 427057 , 427395 , 435324 , 444972 , 457643 , 457774 , 458991 , 459171 , 462644 , 464295 , 469227 , 474299 , 476475 , 482256 , 484923 , 485449 , 486962 , 513828 , 514980 , 517428 , 517626 , 521913 , 523934 , 523940 , 543679 , 549327 , 555317 , 556856 , 565095 , 568721 , 572603 , 577409 , 584774 , 585250 , 590730 , 601828 , 613158 , 613463 , 614865 , 619508 , 634363 , 635751 , 650258 , 672761 , 680933 , 680937 , 688999 , 722014 , 724126 , 749359 , 751169 , 818815 , 823063 );
Copy
5
96.56 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
383539
383832
383948
388800
389000
391600
406652
416083
419914
427057
427395
435324
444972
457643
457774
458991
459171
462644
464295
469227
474299
476475
482256
484923
485449
486962
513828
514980
517428
517626
521913
523934
523940
543679
549327
555317
556856
565095
568721
572603
577409
584774
585250
590730
601828
613158
613463
614865
619508
634363
635751
650258
672761
680933
680937
688999
722014
724126
749359
751169
818815
823063
]
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 (383539 , 383832 , 383948 , 388800 , 389000 , 391600 , 406652 , 416083 , 419914 , 427057 , 427395 , 435324 , 444972 , 457643 , 457774 , 458991 , 459171 , 462644 , 464295 , 469227 , 474299 , 476475 , 482256 , 484923 , 485449 , 486962 , 513828 , 514980 , 517428 , 517626 , 521913 , 523934 , 523940 , 543679 , 549327 , 555317 , 556856 , 565095 , 568721 , 572603 , 577409 , 584774 , 585250 , 590730 , 601828 , 613158 , 613463 , 614865 , 619508 , 634363 , 635751 , 650258 , 672761 , 680933 , 680937 , 688999 , 722014 , 724126 , 749359 , 751169 , 818815 , 823063 );
Copy