3
12.66 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
828787
432417
432481
432453
828763
828550
432372
597522
828544
791250
791773
771554
809486
716214
695760
664206
697727
432387
828561
744425
730741
491433
515710
487826
536084
503877
760637
771547
741073
432464
542979
433198
569436
695544
540703
584483
812448
736797
771576
432410
433051
434207
434936
433049
432421
432437
432455
433715
433599
521410
542978
432484
432569
433059
433554
432448
434232
434093
508243
422382
777125
779016
432522
488964
437988
509247
509235
509698
451877
452979
627773
]
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 (828787 , 432417 , 432481 , 432453 , 828763 , 828550 , 432372 , 597522 , 828544 , 791250 , 791773 , 771554 , 809486 , 716214 , 695760 , 664206 , 697727 , 432387 , 828561 , 744425 , 730741 , 491433 , 515710 , 487826 , 536084 , 503877 , 760637 , 771547 , 741073 , 432464 , 542979 , 433198 , 569436 , 695544 , 540703 , 584483 , 812448 , 736797 , 771576 , 432410 , 433051 , 434207 , 434936 , 433049 , 432421 , 432437 , 432455 , 433715 , 433599 , 521410 , 542978 , 432484 , 432569 , 433059 , 433554 , 432448 , 434232 , 434093 , 508243 , 422382 , 777125 , 779016 , 432522 , 488964 , 437988 , 509247 , 509235 , 509698 , 451877 , 452979 , 627773 );
Copy
4
3.57 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
422382
432372
432387
432410
432417
432421
432437
432448
432453
432455
432464
432481
432484
432522
432569
433049
433051
433059
433198
433554
433599
433715
434093
434207
434232
434936
437988
451877
452979
487826
488964
491433
503877
508243
509235
509247
509698
515710
521410
536084
540703
542978
542979
569436
584483
597522
627773
664206
695544
695760
697727
716214
730741
736797
741073
744425
760637
771547
771554
771576
777125
779016
791250
791773
809486
812448
828544
828550
828763
828787
]
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 (422382 , 432372 , 432387 , 432410 , 432417 , 432421 , 432437 , 432448 , 432453 , 432455 , 432464 , 432481 , 432484 , 432522 , 432569 , 433049 , 433051 , 433059 , 433198 , 433554 , 433599 , 433715 , 434093 , 434207 , 434232 , 434936 , 437988 , 451877 , 452979 , 487826 , 488964 , 491433 , 503877 , 508243 , 509235 , 509247 , 509698 , 515710 , 521410 , 536084 , 540703 , 542978 , 542979 , 569436 , 584483 , 597522 , 627773 , 664206 , 695544 , 695760 , 697727 , 716214 , 730741 , 736797 , 741073 , 744425 , 760637 , 771547 , 771554 , 771576 , 777125 , 779016 , 791250 , 791773 , 809486 , 812448 , 828544 , 828550 , 828763 , 828787 );
Copy
5
101.81 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
422382
432372
432387
432410
432417
432421
432437
432448
432453
432455
432464
432481
432484
432522
432569
433049
433051
433059
433198
433554
433599
433715
434093
434207
434232
434936
437988
451877
452979
487826
488964
491433
503877
508243
509235
509247
509698
515710
521410
536084
540703
542978
542979
569436
584483
597522
627773
664206
695544
695760
697727
716214
730741
736797
741073
744425
760637
771547
771554
771576
777125
779016
791250
791773
809486
812448
828544
828550
828763
828787
]
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 (422382 , 432372 , 432387 , 432410 , 432417 , 432421 , 432437 , 432448 , 432453 , 432455 , 432464 , 432481 , 432484 , 432522 , 432569 , 433049 , 433051 , 433059 , 433198 , 433554 , 433599 , 433715 , 434093 , 434207 , 434232 , 434936 , 437988 , 451877 , 452979 , 487826 , 488964 , 491433 , 503877 , 508243 , 509235 , 509247 , 509698 , 515710 , 521410 , 536084 , 540703 , 542978 , 542979 , 569436 , 584483 , 597522 , 627773 , 664206 , 695544 , 695760 , 697727 , 716214 , 730741 , 736797 , 741073 , 744425 , 760637 , 771547 , 771554 , 771576 , 777125 , 779016 , 791250 , 791773 , 809486 , 812448 , 828544 , 828550 , 828763 , 828787 );
Copy