3
22.81 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
524121
537409
798703
622110
655608
454242
518271
717849
593858
657271
645926
744306
544485
552281
646202
677323
621508
677387
667693
381928
503213
565391
496540
550820
534208
569687
546106
605355
614264
468044
515231
576634
544474
529365
688071
573914
592478
580940
523427
653452
583725
476905
486438
482320
465360
537595
598915
630221
580079
514580
556436
528397
555948
586519
583482
581096
548538
514582
607527
541673
583729
524628
562906
543607
544296
587651
543881
542191
588286
]
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 (524121 , 537409 , 798703 , 622110 , 655608 , 454242 , 518271 , 717849 , 593858 , 657271 , 645926 , 744306 , 544485 , 552281 , 646202 , 677323 , 621508 , 677387 , 667693 , 381928 , 503213 , 565391 , 496540 , 550820 , 534208 , 569687 , 546106 , 605355 , 614264 , 468044 , 515231 , 576634 , 544474 , 529365 , 688071 , 573914 , 592478 , 580940 , 523427 , 653452 , 583725 , 476905 , 486438 , 482320 , 465360 , 537595 , 598915 , 630221 , 580079 , 514580 , 556436 , 528397 , 555948 , 586519 , 583482 , 581096 , 548538 , 514582 , 607527 , 541673 , 583729 , 524628 , 562906 , 543607 , 544296 , 587651 , 543881 , 542191 , 588286 );
Copy
4
4.43 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
381928
454242
465360
468044
476905
482320
486438
496540
503213
514580
514582
515231
518271
523427
524121
524628
528397
529365
534208
537409
537595
541673
542191
543607
543881
544296
544474
544485
546106
548538
550820
552281
555948
556436
562906
565391
569687
573914
576634
580079
580940
581096
583482
583725
583729
586519
587651
588286
592478
593858
598915
605355
607527
614264
621508
622110
630221
645926
646202
653452
655608
657271
667693
677323
677387
688071
717849
744306
798703
]
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 (381928 , 454242 , 465360 , 468044 , 476905 , 482320 , 486438 , 496540 , 503213 , 514580 , 514582 , 515231 , 518271 , 523427 , 524121 , 524628 , 528397 , 529365 , 534208 , 537409 , 537595 , 541673 , 542191 , 543607 , 543881 , 544296 , 544474 , 544485 , 546106 , 548538 , 550820 , 552281 , 555948 , 556436 , 562906 , 565391 , 569687 , 573914 , 576634 , 580079 , 580940 , 581096 , 583482 , 583725 , 583729 , 586519 , 587651 , 588286 , 592478 , 593858 , 598915 , 605355 , 607527 , 614264 , 621508 , 622110 , 630221 , 645926 , 646202 , 653452 , 655608 , 657271 , 667693 , 677323 , 677387 , 688071 , 717849 , 744306 , 798703 );
Copy
5
123.90 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
381928
454242
465360
468044
476905
482320
486438
496540
503213
514580
514582
515231
518271
523427
524121
524628
528397
529365
534208
537409
537595
541673
542191
543607
543881
544296
544474
544485
546106
548538
550820
552281
555948
556436
562906
565391
569687
573914
576634
580079
580940
581096
583482
583725
583729
586519
587651
588286
592478
593858
598915
605355
607527
614264
621508
622110
630221
645926
646202
653452
655608
657271
667693
677323
677387
688071
717849
744306
798703
]
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 (381928 , 454242 , 465360 , 468044 , 476905 , 482320 , 486438 , 496540 , 503213 , 514580 , 514582 , 515231 , 518271 , 523427 , 524121 , 524628 , 528397 , 529365 , 534208 , 537409 , 537595 , 541673 , 542191 , 543607 , 543881 , 544296 , 544474 , 544485 , 546106 , 548538 , 550820 , 552281 , 555948 , 556436 , 562906 , 565391 , 569687 , 573914 , 576634 , 580079 , 580940 , 581096 , 583482 , 583725 , 583729 , 586519 , 587651 , 588286 , 592478 , 593858 , 598915 , 605355 , 607527 , 614264 , 621508 , 622110 , 630221 , 645926 , 646202 , 653452 , 655608 , 657271 , 667693 , 677323 , 677387 , 688071 , 717849 , 744306 , 798703 );
Copy