3
10.17 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
562534
576072
581487
557472
574807
549683
550405
607558
609759
742512
745026
745028
762003
722891
432872
479535
475242
479941
515448
489249
499548
558745
721895
548441
556877
590689
591387
463972
508062
513725
513081
516210
461730
481943
496872
548733
553208
618394
597587
608694
478292
457429
512285
511293
524581
524189
552643
482298
479527
442933
453723
454420
454439
510341
536414
423259
482211
471763
507423
505843
444679
568822
515579
620262
]
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 (562534 , 576072 , 581487 , 557472 , 574807 , 549683 , 550405 , 607558 , 609759 , 742512 , 745026 , 745028 , 762003 , 722891 , 432872 , 479535 , 475242 , 479941 , 515448 , 489249 , 499548 , 558745 , 721895 , 548441 , 556877 , 590689 , 591387 , 463972 , 508062 , 513725 , 513081 , 516210 , 461730 , 481943 , 496872 , 548733 , 553208 , 618394 , 597587 , 608694 , 478292 , 457429 , 512285 , 511293 , 524581 , 524189 , 552643 , 482298 , 479527 , 442933 , 453723 , 454420 , 454439 , 510341 , 536414 , 423259 , 482211 , 471763 , 507423 , 505843 , 444679 , 568822 , 515579 , 620262 );
Copy
4
1.87 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
423259
432872
442933
444679
453723
454420
454439
457429
461730
463972
471763
475242
478292
479527
479535
479941
481943
482211
482298
489249
496872
499548
505843
507423
508062
510341
511293
512285
513081
513725
515448
515579
516210
524189
524581
536414
548441
548733
549683
550405
552643
553208
556877
557472
558745
562534
568822
574807
576072
581487
590689
591387
597587
607558
608694
609759
618394
620262
721895
722891
742512
745026
745028
762003
]
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 (423259 , 432872 , 442933 , 444679 , 453723 , 454420 , 454439 , 457429 , 461730 , 463972 , 471763 , 475242 , 478292 , 479527 , 479535 , 479941 , 481943 , 482211 , 482298 , 489249 , 496872 , 499548 , 505843 , 507423 , 508062 , 510341 , 511293 , 512285 , 513081 , 513725 , 515448 , 515579 , 516210 , 524189 , 524581 , 536414 , 548441 , 548733 , 549683 , 550405 , 552643 , 553208 , 556877 , 557472 , 558745 , 562534 , 568822 , 574807 , 576072 , 581487 , 590689 , 591387 , 597587 , 607558 , 608694 , 609759 , 618394 , 620262 , 721895 , 722891 , 742512 , 745026 , 745028 , 762003 );
Copy
5
69.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
423259
432872
442933
444679
453723
454420
454439
457429
461730
463972
471763
475242
478292
479527
479535
479941
481943
482211
482298
489249
496872
499548
505843
507423
508062
510341
511293
512285
513081
513725
515448
515579
516210
524189
524581
536414
548441
548733
549683
550405
552643
553208
556877
557472
558745
562534
568822
574807
576072
581487
590689
591387
597587
607558
608694
609759
618394
620262
721895
722891
742512
745026
745028
762003
]
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 (423259 , 432872 , 442933 , 444679 , 453723 , 454420 , 454439 , 457429 , 461730 , 463972 , 471763 , 475242 , 478292 , 479527 , 479535 , 479941 , 481943 , 482211 , 482298 , 489249 , 496872 , 499548 , 505843 , 507423 , 508062 , 510341 , 511293 , 512285 , 513081 , 513725 , 515448 , 515579 , 516210 , 524189 , 524581 , 536414 , 548441 , 548733 , 549683 , 550405 , 552643 , 553208 , 556877 , 557472 , 558745 , 562534 , 568822 , 574807 , 576072 , 581487 , 590689 , 591387 , 597587 , 607558 , 608694 , 609759 , 618394 , 620262 , 721895 , 722891 , 742512 , 745026 , 745028 , 762003 );
Copy