3
10.75 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
513530
423856
437959
64314
505773
605642
382879
684067
442626
507041
456819
454487
604183
618948
554634
459718
511168
519375
615605
496038
566582
585586
411984
440981
485798
516404
568723
511030
581876
519482
568378
496979
525544
601990
385003
481495
685750
506273
433310
559158
552768
520761
521750
615602
396907
606069
440440
528707
569549
582114
508968
582603
472299
582373
582617
453522
582997
508474
510913
520770
526330
537307
582342
604436
553190
507944
583033
631593
]
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 (513530 , 423856 , 437959 , 64314 , 505773 , 605642 , 382879 , 684067 , 442626 , 507041 , 456819 , 454487 , 604183 , 618948 , 554634 , 459718 , 511168 , 519375 , 615605 , 496038 , 566582 , 585586 , 411984 , 440981 , 485798 , 516404 , 568723 , 511030 , 581876 , 519482 , 568378 , 496979 , 525544 , 601990 , 385003 , 481495 , 685750 , 506273 , 433310 , 559158 , 552768 , 520761 , 521750 , 615602 , 396907 , 606069 , 440440 , 528707 , 569549 , 582114 , 508968 , 582603 , 472299 , 582373 , 582617 , 453522 , 582997 , 508474 , 510913 , 520770 , 526330 , 537307 , 582342 , 604436 , 553190 , 507944 , 583033 , 631593 );
Copy
4
2.44 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
64314
382879
385003
396907
411984
423856
433310
437959
440440
440981
442626
453522
454487
456819
459718
472299
481495
485798
496038
496979
505773
506273
507041
507944
508474
508968
510913
511030
511168
513530
516404
519375
519482
520761
520770
521750
525544
526330
528707
537307
552768
553190
554634
559158
566582
568378
568723
569549
581876
582114
582342
582373
582603
582617
582997
583033
585586
601990
604183
604436
605642
606069
615602
615605
618948
631593
684067
685750
]
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 (64314 , 382879 , 385003 , 396907 , 411984 , 423856 , 433310 , 437959 , 440440 , 440981 , 442626 , 453522 , 454487 , 456819 , 459718 , 472299 , 481495 , 485798 , 496038 , 496979 , 505773 , 506273 , 507041 , 507944 , 508474 , 508968 , 510913 , 511030 , 511168 , 513530 , 516404 , 519375 , 519482 , 520761 , 520770 , 521750 , 525544 , 526330 , 528707 , 537307 , 552768 , 553190 , 554634 , 559158 , 566582 , 568378 , 568723 , 569549 , 581876 , 582114 , 582342 , 582373 , 582603 , 582617 , 582997 , 583033 , 585586 , 601990 , 604183 , 604436 , 605642 , 606069 , 615602 , 615605 , 618948 , 631593 , 684067 , 685750 );
Copy
5
71.57 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
64314
382879
385003
396907
411984
423856
433310
437959
440440
440981
442626
453522
454487
456819
459718
472299
481495
485798
496038
496979
505773
506273
507041
507944
508474
508968
510913
511030
511168
513530
516404
519375
519482
520761
520770
521750
525544
526330
528707
537307
552768
553190
554634
559158
566582
568378
568723
569549
581876
582114
582342
582373
582603
582617
582997
583033
585586
601990
604183
604436
605642
606069
615602
615605
618948
631593
684067
685750
]
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 (64314 , 382879 , 385003 , 396907 , 411984 , 423856 , 433310 , 437959 , 440440 , 440981 , 442626 , 453522 , 454487 , 456819 , 459718 , 472299 , 481495 , 485798 , 496038 , 496979 , 505773 , 506273 , 507041 , 507944 , 508474 , 508968 , 510913 , 511030 , 511168 , 513530 , 516404 , 519375 , 519482 , 520761 , 520770 , 521750 , 525544 , 526330 , 528707 , 537307 , 552768 , 553190 , 554634 , 559158 , 566582 , 568378 , 568723 , 569549 , 581876 , 582114 , 582342 , 582373 , 582603 , 582617 , 582997 , 583033 , 585586 , 601990 , 604183 , 604436 , 605642 , 606069 , 615602 , 615605 , 618948 , 631593 , 684067 , 685750 );
Copy