3
11.57 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
603304
405816
442065
482337
536634
716201
784358
633540
383751
429272
559807
515661
692169
587578
449254
415044
481635
497729
517736
515356
581173
547708
551829
579284
603358
611330
587961
594031
750907
752506
592194
464703
437463
506656
515354
595309
515678
553446
672804
481612
515350
538478
570736
390629
416031
415566
520612
556612
588305
593059
615394
493104
603277
594060
607552
630919
797170
454364
489173
536655
487348
584024
625526
597787
474827
523317
583997
583033
650788
509100
603047
565501
]
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 (603304 , 405816 , 442065 , 482337 , 536634 , 716201 , 784358 , 633540 , 383751 , 429272 , 559807 , 515661 , 692169 , 587578 , 449254 , 415044 , 481635 , 497729 , 517736 , 515356 , 581173 , 547708 , 551829 , 579284 , 603358 , 611330 , 587961 , 594031 , 750907 , 752506 , 592194 , 464703 , 437463 , 506656 , 515354 , 595309 , 515678 , 553446 , 672804 , 481612 , 515350 , 538478 , 570736 , 390629 , 416031 , 415566 , 520612 , 556612 , 588305 , 593059 , 615394 , 493104 , 603277 , 594060 , 607552 , 630919 , 797170 , 454364 , 489173 , 536655 , 487348 , 584024 , 625526 , 597787 , 474827 , 523317 , 583997 , 583033 , 650788 , 509100 , 603047 , 565501 );
Copy
4
2.10 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
383751
390629
405816
415044
415566
416031
429272
437463
442065
449254
454364
464703
474827
481612
481635
482337
487348
489173
493104
497729
506656
509100
515350
515354
515356
515661
515678
517736
520612
523317
536634
536655
538478
547708
551829
553446
556612
559807
565501
570736
579284
581173
583033
583997
584024
587578
587961
588305
592194
593059
594031
594060
595309
597787
603047
603277
603304
603358
607552
611330
615394
625526
630919
633540
650788
672804
692169
716201
750907
752506
784358
797170
]
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 (383751 , 390629 , 405816 , 415044 , 415566 , 416031 , 429272 , 437463 , 442065 , 449254 , 454364 , 464703 , 474827 , 481612 , 481635 , 482337 , 487348 , 489173 , 493104 , 497729 , 506656 , 509100 , 515350 , 515354 , 515356 , 515661 , 515678 , 517736 , 520612 , 523317 , 536634 , 536655 , 538478 , 547708 , 551829 , 553446 , 556612 , 559807 , 565501 , 570736 , 579284 , 581173 , 583033 , 583997 , 584024 , 587578 , 587961 , 588305 , 592194 , 593059 , 594031 , 594060 , 595309 , 597787 , 603047 , 603277 , 603304 , 603358 , 607552 , 611330 , 615394 , 625526 , 630919 , 633540 , 650788 , 672804 , 692169 , 716201 , 750907 , 752506 , 784358 , 797170 );
Copy
5
80.47 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
383751
390629
405816
415044
415566
416031
429272
437463
442065
449254
454364
464703
474827
481612
481635
482337
487348
489173
493104
497729
506656
509100
515350
515354
515356
515661
515678
517736
520612
523317
536634
536655
538478
547708
551829
553446
556612
559807
565501
570736
579284
581173
583033
583997
584024
587578
587961
588305
592194
593059
594031
594060
595309
597787
603047
603277
603304
603358
607552
611330
615394
625526
630919
633540
650788
672804
692169
716201
750907
752506
784358
797170
]
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 (383751 , 390629 , 405816 , 415044 , 415566 , 416031 , 429272 , 437463 , 442065 , 449254 , 454364 , 464703 , 474827 , 481612 , 481635 , 482337 , 487348 , 489173 , 493104 , 497729 , 506656 , 509100 , 515350 , 515354 , 515356 , 515661 , 515678 , 517736 , 520612 , 523317 , 536634 , 536655 , 538478 , 547708 , 551829 , 553446 , 556612 , 559807 , 565501 , 570736 , 579284 , 581173 , 583033 , 583997 , 584024 , 587578 , 587961 , 588305 , 592194 , 593059 , 594031 , 594060 , 595309 , 597787 , 603047 , 603277 , 603304 , 603358 , 607552 , 611330 , 615394 , 625526 , 630919 , 633540 , 650788 , 672804 , 692169 , 716201 , 750907 , 752506 , 784358 , 797170 );
Copy