3
14.84 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
655705
658281
687522
580270
598439
590469
603224
481895
433339
425050
455912
491963
514648
519988
512451
423329
448810
499791
562803
651929
653325
659323
574200
585698
597186
619097
587901
405272
509164
484924
521784
518468
521438
525688
550662
548490
586575
598865
509802
522013
487703
514997
458010
536397
559392
584688
659328
557947
598711
591314
612434
618874
469534
461602
408609
535016
536400
551129
562108
610606
591135
479196
517000
553280
573314
588318
]
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 (655705 , 658281 , 687522 , 580270 , 598439 , 590469 , 603224 , 481895 , 433339 , 425050 , 455912 , 491963 , 514648 , 519988 , 512451 , 423329 , 448810 , 499791 , 562803 , 651929 , 653325 , 659323 , 574200 , 585698 , 597186 , 619097 , 587901 , 405272 , 509164 , 484924 , 521784 , 518468 , 521438 , 525688 , 550662 , 548490 , 586575 , 598865 , 509802 , 522013 , 487703 , 514997 , 458010 , 536397 , 559392 , 584688 , 659328 , 557947 , 598711 , 591314 , 612434 , 618874 , 469534 , 461602 , 408609 , 535016 , 536400 , 551129 , 562108 , 610606 , 591135 , 479196 , 517000 , 553280 , 573314 , 588318 );
Copy
4
1.91 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
405272
408609
423329
425050
433339
448810
455912
458010
461602
469534
479196
481895
484924
487703
491963
499791
509164
509802
512451
514648
514997
517000
518468
519988
521438
521784
522013
525688
535016
536397
536400
548490
550662
551129
553280
557947
559392
562108
562803
573314
574200
580270
584688
585698
586575
587901
588318
590469
591135
591314
597186
598439
598711
598865
603224
610606
612434
618874
619097
651929
653325
655705
658281
659323
659328
687522
]
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 (405272 , 408609 , 423329 , 425050 , 433339 , 448810 , 455912 , 458010 , 461602 , 469534 , 479196 , 481895 , 484924 , 487703 , 491963 , 499791 , 509164 , 509802 , 512451 , 514648 , 514997 , 517000 , 518468 , 519988 , 521438 , 521784 , 522013 , 525688 , 535016 , 536397 , 536400 , 548490 , 550662 , 551129 , 553280 , 557947 , 559392 , 562108 , 562803 , 573314 , 574200 , 580270 , 584688 , 585698 , 586575 , 587901 , 588318 , 590469 , 591135 , 591314 , 597186 , 598439 , 598711 , 598865 , 603224 , 610606 , 612434 , 618874 , 619097 , 651929 , 653325 , 655705 , 658281 , 659323 , 659328 , 687522 );
Copy
5
75.78 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
405272
408609
423329
425050
433339
448810
455912
458010
461602
469534
479196
481895
484924
487703
491963
499791
509164
509802
512451
514648
514997
517000
518468
519988
521438
521784
522013
525688
535016
536397
536400
548490
550662
551129
553280
557947
559392
562108
562803
573314
574200
580270
584688
585698
586575
587901
588318
590469
591135
591314
597186
598439
598711
598865
603224
610606
612434
618874
619097
651929
653325
655705
658281
659323
659328
687522
]
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 (405272 , 408609 , 423329 , 425050 , 433339 , 448810 , 455912 , 458010 , 461602 , 469534 , 479196 , 481895 , 484924 , 487703 , 491963 , 499791 , 509164 , 509802 , 512451 , 514648 , 514997 , 517000 , 518468 , 519988 , 521438 , 521784 , 522013 , 525688 , 535016 , 536397 , 536400 , 548490 , 550662 , 551129 , 553280 , 557947 , 559392 , 562108 , 562803 , 573314 , 574200 , 580270 , 584688 , 585698 , 586575 , 587901 , 588318 , 590469 , 591135 , 591314 , 597186 , 598439 , 598711 , 598865 , 603224 , 610606 , 612434 , 618874 , 619097 , 651929 , 653325 , 655705 , 658281 , 659323 , 659328 , 687522 );
Copy