3
11.54 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
553212
692701
672229
455380
505191
555995
823894
682714
643211
556009
620754
553586
623835
733446
525884
560860
810891
419035
555990
479744
402021
553604
457412
405850
661326
507332
465918
541995
721958
471599
441314
444384
469689
567098
708655
425562
427065
507499
420860
421547
452374
466649
479931
517039
525193
530481
569456
466005
433982
444180
517120
421787
441629
448561
517129
465947
488550
541479
570954
457795
427364
459956
466750
456520
507616
407800
431759
485099
557941
403588
435226
420741
549830
528931
]
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 (553212 , 692701 , 672229 , 455380 , 505191 , 555995 , 823894 , 682714 , 643211 , 556009 , 620754 , 553586 , 623835 , 733446 , 525884 , 560860 , 810891 , 419035 , 555990 , 479744 , 402021 , 553604 , 457412 , 405850 , 661326 , 507332 , 465918 , 541995 , 721958 , 471599 , 441314 , 444384 , 469689 , 567098 , 708655 , 425562 , 427065 , 507499 , 420860 , 421547 , 452374 , 466649 , 479931 , 517039 , 525193 , 530481 , 569456 , 466005 , 433982 , 444180 , 517120 , 421787 , 441629 , 448561 , 517129 , 465947 , 488550 , 541479 , 570954 , 457795 , 427364 , 459956 , 466750 , 456520 , 507616 , 407800 , 431759 , 485099 , 557941 , 403588 , 435226 , 420741 , 549830 , 528931 );
Copy
4
2.42 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
402021
403588
405850
407800
419035
420741
420860
421547
421787
425562
427065
427364
431759
433982
435226
441314
441629
444180
444384
448561
452374
455380
457412
457795
459956
465918
465947
466005
466649
466750
469689
471599
479744
479931
485099
488550
505191
507332
507499
507616
517039
517120
517129
525193
525884
528931
530481
541479
541995
549830
553212
553586
553604
555990
555995
556009
557941
560860
567098
569456
570954
620754
623835
643211
661326
672229
682714
692701
708655
721958
733446
810891
823894
]
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 (402021 , 403588 , 405850 , 407800 , 419035 , 420741 , 420860 , 421547 , 421787 , 425562 , 427065 , 427364 , 431759 , 433982 , 435226 , 441314 , 441629 , 444180 , 444384 , 448561 , 452374 , 455380 , 457412 , 457795 , 459956 , 465918 , 465947 , 466005 , 466649 , 466750 , 469689 , 471599 , 479744 , 479931 , 485099 , 488550 , 505191 , 507332 , 507499 , 507616 , 517039 , 517120 , 517129 , 525193 , 525884 , 528931 , 530481 , 541479 , 541995 , 549830 , 553212 , 553586 , 553604 , 555990 , 555995 , 556009 , 557941 , 560860 , 567098 , 569456 , 570954 , 620754 , 623835 , 643211 , 661326 , 672229 , 682714 , 692701 , 708655 , 721958 , 733446 , 810891 , 823894 );
Copy
5
99.24 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
402021
403588
405850
407800
419035
420741
420860
421547
421787
425562
427065
427364
431759
433982
435226
441314
441629
444180
444384
448561
452374
455380
457412
457795
459956
465918
465947
466005
466649
466750
469689
471599
479744
479931
485099
488550
505191
507332
507499
507616
517039
517120
517129
525193
525884
528931
530481
541479
541995
549830
553212
553586
553604
555990
555995
556009
557941
560860
567098
569456
570954
620754
623835
643211
661326
672229
682714
692701
708655
721958
733446
810891
823894
]
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 (402021 , 403588 , 405850 , 407800 , 419035 , 420741 , 420860 , 421547 , 421787 , 425562 , 427065 , 427364 , 431759 , 433982 , 435226 , 441314 , 441629 , 444180 , 444384 , 448561 , 452374 , 455380 , 457412 , 457795 , 459956 , 465918 , 465947 , 466005 , 466649 , 466750 , 469689 , 471599 , 479744 , 479931 , 485099 , 488550 , 505191 , 507332 , 507499 , 507616 , 517039 , 517120 , 517129 , 525193 , 525884 , 528931 , 530481 , 541479 , 541995 , 549830 , 553212 , 553586 , 553604 , 555990 , 555995 , 556009 , 557941 , 560860 , 567098 , 569456 , 570954 , 620754 , 623835 , 643211 , 661326 , 672229 , 682714 , 692701 , 708655 , 721958 , 733446 , 810891 , 823894 );
Copy