3
13.28 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
411046
420008
519812
488732
558175
434081
669668
774350
419835
387391
529341
544347
562372
815592
547280
549367
549422
564420
681277
679378
608032
736494
529934
505033
572631
457735
768663
523491
551038
581313
456896
416926
545498
607694
499587
570952
523974
531154
588345
544009
555986
445778
549354
551984
597284
622856
623504
562820
551250
529975
529971
532604
535616
571128
414184
551235
552779
687293
490608
623817
499594
583668
487648
550031
558411
457783
583819
624834
527560
459171
574200
573212
563388
680100
620263
]
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 (411046 , 420008 , 519812 , 488732 , 558175 , 434081 , 669668 , 774350 , 419835 , 387391 , 529341 , 544347 , 562372 , 815592 , 547280 , 549367 , 549422 , 564420 , 681277 , 679378 , 608032 , 736494 , 529934 , 505033 , 572631 , 457735 , 768663 , 523491 , 551038 , 581313 , 456896 , 416926 , 545498 , 607694 , 499587 , 570952 , 523974 , 531154 , 588345 , 544009 , 555986 , 445778 , 549354 , 551984 , 597284 , 622856 , 623504 , 562820 , 551250 , 529975 , 529971 , 532604 , 535616 , 571128 , 414184 , 551235 , 552779 , 687293 , 490608 , 623817 , 499594 , 583668 , 487648 , 550031 , 558411 , 457783 , 583819 , 624834 , 527560 , 459171 , 574200 , 573212 , 563388 , 680100 , 620263 );
Copy
4
2.65 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
387391
411046
414184
416926
419835
420008
434081
445778
456896
457735
457783
459171
487648
488732
490608
499587
499594
505033
519812
523491
523974
527560
529341
529934
529971
529975
531154
532604
535616
544009
544347
545498
547280
549354
549367
549422
550031
551038
551235
551250
551984
552779
555986
558175
558411
562372
562820
563388
564420
570952
571128
572631
573212
574200
581313
583668
583819
588345
597284
607694
608032
620263
622856
623504
623817
624834
669668
679378
680100
681277
687293
736494
768663
774350
815592
]
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 (387391 , 411046 , 414184 , 416926 , 419835 , 420008 , 434081 , 445778 , 456896 , 457735 , 457783 , 459171 , 487648 , 488732 , 490608 , 499587 , 499594 , 505033 , 519812 , 523491 , 523974 , 527560 , 529341 , 529934 , 529971 , 529975 , 531154 , 532604 , 535616 , 544009 , 544347 , 545498 , 547280 , 549354 , 549367 , 549422 , 550031 , 551038 , 551235 , 551250 , 551984 , 552779 , 555986 , 558175 , 558411 , 562372 , 562820 , 563388 , 564420 , 570952 , 571128 , 572631 , 573212 , 574200 , 581313 , 583668 , 583819 , 588345 , 597284 , 607694 , 608032 , 620263 , 622856 , 623504 , 623817 , 624834 , 669668 , 679378 , 680100 , 681277 , 687293 , 736494 , 768663 , 774350 , 815592 );
Copy
5
132.40 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
387391
411046
414184
416926
419835
420008
434081
445778
456896
457735
457783
459171
487648
488732
490608
499587
499594
505033
519812
523491
523974
527560
529341
529934
529971
529975
531154
532604
535616
544009
544347
545498
547280
549354
549367
549422
550031
551038
551235
551250
551984
552779
555986
558175
558411
562372
562820
563388
564420
570952
571128
572631
573212
574200
581313
583668
583819
588345
597284
607694
608032
620263
622856
623504
623817
624834
669668
679378
680100
681277
687293
736494
768663
774350
815592
]
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 (387391 , 411046 , 414184 , 416926 , 419835 , 420008 , 434081 , 445778 , 456896 , 457735 , 457783 , 459171 , 487648 , 488732 , 490608 , 499587 , 499594 , 505033 , 519812 , 523491 , 523974 , 527560 , 529341 , 529934 , 529971 , 529975 , 531154 , 532604 , 535616 , 544009 , 544347 , 545498 , 547280 , 549354 , 549367 , 549422 , 550031 , 551038 , 551235 , 551250 , 551984 , 552779 , 555986 , 558175 , 558411 , 562372 , 562820 , 563388 , 564420 , 570952 , 571128 , 572631 , 573212 , 574200 , 581313 , 583668 , 583819 , 588345 , 597284 , 607694 , 608032 , 620263 , 622856 , 623504 , 623817 , 624834 , 669668 , 679378 , 680100 , 681277 , 687293 , 736494 , 768663 , 774350 , 815592 );
Copy