3
7.00 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
419435
574719
467702
787626
786288
787567
548882
395947
471525
627785
787553
814379
534277
601196
495103
576165
414753
412101
440580
423383
552507
775751
730637
627161
812737
478212
463734
423777
478122
488010
515377
494163
574745
448505
464982
20180
517942
505910
445310
483671
555832
528205
455923
471959
434741
496615
510025
608431
460443
479940
432534
501517
409391
455812
492928
572887
587016
435807
555702
479048
496139
504362
437996
597532
598500
611984
590408
]
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 (419435 , 574719 , 467702 , 787626 , 786288 , 787567 , 548882 , 395947 , 471525 , 627785 , 787553 , 814379 , 534277 , 601196 , 495103 , 576165 , 414753 , 412101 , 440580 , 423383 , 552507 , 775751 , 730637 , 627161 , 812737 , 478212 , 463734 , 423777 , 478122 , 488010 , 515377 , 494163 , 574745 , 448505 , 464982 , 20180 , 517942 , 505910 , 445310 , 483671 , 555832 , 528205 , 455923 , 471959 , 434741 , 496615 , 510025 , 608431 , 460443 , 479940 , 432534 , 501517 , 409391 , 455812 , 492928 , 572887 , 587016 , 435807 , 555702 , 479048 , 496139 , 504362 , 437996 , 597532 , 598500 , 611984 , 590408 );
Copy
4
2.08 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
20180
395947
409391
412101
414753
419435
423383
423777
432534
434741
435807
437996
440580
445310
448505
455812
455923
460443
463734
464982
467702
471525
471959
478122
478212
479048
479940
483671
488010
492928
494163
495103
496139
496615
501517
504362
505910
510025
515377
517942
528205
534277
548882
552507
555702
555832
572887
574719
574745
576165
587016
590408
597532
598500
601196
608431
611984
627161
627785
730637
775751
786288
787553
787567
787626
812737
814379
]
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 (20180 , 395947 , 409391 , 412101 , 414753 , 419435 , 423383 , 423777 , 432534 , 434741 , 435807 , 437996 , 440580 , 445310 , 448505 , 455812 , 455923 , 460443 , 463734 , 464982 , 467702 , 471525 , 471959 , 478122 , 478212 , 479048 , 479940 , 483671 , 488010 , 492928 , 494163 , 495103 , 496139 , 496615 , 501517 , 504362 , 505910 , 510025 , 515377 , 517942 , 528205 , 534277 , 548882 , 552507 , 555702 , 555832 , 572887 , 574719 , 574745 , 576165 , 587016 , 590408 , 597532 , 598500 , 601196 , 608431 , 611984 , 627161 , 627785 , 730637 , 775751 , 786288 , 787553 , 787567 , 787626 , 812737 , 814379 );
Copy
5
105.82 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
20180
395947
409391
412101
414753
419435
423383
423777
432534
434741
435807
437996
440580
445310
448505
455812
455923
460443
463734
464982
467702
471525
471959
478122
478212
479048
479940
483671
488010
492928
494163
495103
496139
496615
501517
504362
505910
510025
515377
517942
528205
534277
548882
552507
555702
555832
572887
574719
574745
576165
587016
590408
597532
598500
601196
608431
611984
627161
627785
730637
775751
786288
787553
787567
787626
812737
814379
]
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 (20180 , 395947 , 409391 , 412101 , 414753 , 419435 , 423383 , 423777 , 432534 , 434741 , 435807 , 437996 , 440580 , 445310 , 448505 , 455812 , 455923 , 460443 , 463734 , 464982 , 467702 , 471525 , 471959 , 478122 , 478212 , 479048 , 479940 , 483671 , 488010 , 492928 , 494163 , 495103 , 496139 , 496615 , 501517 , 504362 , 505910 , 510025 , 515377 , 517942 , 528205 , 534277 , 548882 , 552507 , 555702 , 555832 , 572887 , 574719 , 574745 , 576165 , 587016 , 590408 , 597532 , 598500 , 601196 , 608431 , 611984 , 627161 , 627785 , 730637 , 775751 , 786288 , 787553 , 787567 , 787626 , 812737 , 814379 );
Copy