3
16.94 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
583725
589524
594016
620198
621656
614867
623205
477442
477439
490496
519517
452895
476409
479002
503419
536590
535432
514660
566035
570208
678532
716901
674988
632649
637422
615718
594239
627117
637101
445737
416989
485149
525464
540570
524508
533685
530763
527106
677783
666525
676636
617411
614308
615717
586587
634769
419627
489280
518473
524628
531488
541853
559959
653512
654399
677777
653524
653189
612519
603953
639159
480800
435449
467553
396168
524555
530637
573212
675012
469534
617420
533707
]
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 (583725 , 589524 , 594016 , 620198 , 621656 , 614867 , 623205 , 477442 , 477439 , 490496 , 519517 , 452895 , 476409 , 479002 , 503419 , 536590 , 535432 , 514660 , 566035 , 570208 , 678532 , 716901 , 674988 , 632649 , 637422 , 615718 , 594239 , 627117 , 637101 , 445737 , 416989 , 485149 , 525464 , 540570 , 524508 , 533685 , 530763 , 527106 , 677783 , 666525 , 676636 , 617411 , 614308 , 615717 , 586587 , 634769 , 419627 , 489280 , 518473 , 524628 , 531488 , 541853 , 559959 , 653512 , 654399 , 677777 , 653524 , 653189 , 612519 , 603953 , 639159 , 480800 , 435449 , 467553 , 396168 , 524555 , 530637 , 573212 , 675012 , 469534 , 617420 , 533707 );
Copy
4
1.94 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
396168
416989
419627
435449
445737
452895
467553
469534
476409
477439
477442
479002
480800
485149
489280
490496
503419
514660
518473
519517
524508
524555
524628
525464
527106
530637
530763
531488
533685
533707
535432
536590
540570
541853
559959
566035
570208
573212
583725
586587
589524
594016
594239
603953
612519
614308
614867
615717
615718
617411
617420
620198
621656
623205
627117
632649
634769
637101
637422
639159
653189
653512
653524
654399
666525
674988
675012
676636
677777
677783
678532
716901
]
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 (396168 , 416989 , 419627 , 435449 , 445737 , 452895 , 467553 , 469534 , 476409 , 477439 , 477442 , 479002 , 480800 , 485149 , 489280 , 490496 , 503419 , 514660 , 518473 , 519517 , 524508 , 524555 , 524628 , 525464 , 527106 , 530637 , 530763 , 531488 , 533685 , 533707 , 535432 , 536590 , 540570 , 541853 , 559959 , 566035 , 570208 , 573212 , 583725 , 586587 , 589524 , 594016 , 594239 , 603953 , 612519 , 614308 , 614867 , 615717 , 615718 , 617411 , 617420 , 620198 , 621656 , 623205 , 627117 , 632649 , 634769 , 637101 , 637422 , 639159 , 653189 , 653512 , 653524 , 654399 , 666525 , 674988 , 675012 , 676636 , 677777 , 677783 , 678532 , 716901 );
Copy
5
75.62 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
396168
416989
419627
435449
445737
452895
467553
469534
476409
477439
477442
479002
480800
485149
489280
490496
503419
514660
518473
519517
524508
524555
524628
525464
527106
530637
530763
531488
533685
533707
535432
536590
540570
541853
559959
566035
570208
573212
583725
586587
589524
594016
594239
603953
612519
614308
614867
615717
615718
617411
617420
620198
621656
623205
627117
632649
634769
637101
637422
639159
653189
653512
653524
654399
666525
674988
675012
676636
677777
677783
678532
716901
]
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 (396168 , 416989 , 419627 , 435449 , 445737 , 452895 , 467553 , 469534 , 476409 , 477439 , 477442 , 479002 , 480800 , 485149 , 489280 , 490496 , 503419 , 514660 , 518473 , 519517 , 524508 , 524555 , 524628 , 525464 , 527106 , 530637 , 530763 , 531488 , 533685 , 533707 , 535432 , 536590 , 540570 , 541853 , 559959 , 566035 , 570208 , 573212 , 583725 , 586587 , 589524 , 594016 , 594239 , 603953 , 612519 , 614308 , 614867 , 615717 , 615718 , 617411 , 617420 , 620198 , 621656 , 623205 , 627117 , 632649 , 634769 , 637101 , 637422 , 639159 , 653189 , 653512 , 653524 , 654399 , 666525 , 674988 , 675012 , 676636 , 677777 , 677783 , 678532 , 716901 );
Copy