3
10.33 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
385702
778837
117513
398018
794060
382851
786635
143235
508803
565382
695411
557380
558835
398916
464512
394186
406565
486886
513361
499749
488783
440759
508167
538294
557984
786243
480263
454625
534512
520402
522238
570863
389167
451011
424637
447023
501522
494076
521698
515733
472928
431019
513454
511100
485748
457275
566611
518268
605456
630781
609628
504376
621407
560851
568555
566538
609652
617167
625322
424780
554370
587896
624428
590878
523360
]
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 (385702 , 778837 , 117513 , 398018 , 794060 , 382851 , 786635 , 143235 , 508803 , 565382 , 695411 , 557380 , 558835 , 398916 , 464512 , 394186 , 406565 , 486886 , 513361 , 499749 , 488783 , 440759 , 508167 , 538294 , 557984 , 786243 , 480263 , 454625 , 534512 , 520402 , 522238 , 570863 , 389167 , 451011 , 424637 , 447023 , 501522 , 494076 , 521698 , 515733 , 472928 , 431019 , 513454 , 511100 , 485748 , 457275 , 566611 , 518268 , 605456 , 630781 , 609628 , 504376 , 621407 , 560851 , 568555 , 566538 , 609652 , 617167 , 625322 , 424780 , 554370 , 587896 , 624428 , 590878 , 523360 );
Copy
4
2.60 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
117513
143235
382851
385702
389167
394186
398018
398916
406565
424637
424780
431019
440759
447023
451011
454625
457275
464512
472928
480263
485748
486886
488783
494076
499749
501522
504376
508167
508803
511100
513361
513454
515733
518268
520402
521698
522238
523360
534512
538294
554370
557380
557984
558835
560851
565382
566538
566611
568555
570863
587896
590878
605456
609628
609652
617167
621407
624428
625322
630781
695411
778837
786243
786635
794060
]
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 (117513 , 143235 , 382851 , 385702 , 389167 , 394186 , 398018 , 398916 , 406565 , 424637 , 424780 , 431019 , 440759 , 447023 , 451011 , 454625 , 457275 , 464512 , 472928 , 480263 , 485748 , 486886 , 488783 , 494076 , 499749 , 501522 , 504376 , 508167 , 508803 , 511100 , 513361 , 513454 , 515733 , 518268 , 520402 , 521698 , 522238 , 523360 , 534512 , 538294 , 554370 , 557380 , 557984 , 558835 , 560851 , 565382 , 566538 , 566611 , 568555 , 570863 , 587896 , 590878 , 605456 , 609628 , 609652 , 617167 , 621407 , 624428 , 625322 , 630781 , 695411 , 778837 , 786243 , 786635 , 794060 );
Copy
5
102.56 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
117513
143235
382851
385702
389167
394186
398018
398916
406565
424637
424780
431019
440759
447023
451011
454625
457275
464512
472928
480263
485748
486886
488783
494076
499749
501522
504376
508167
508803
511100
513361
513454
515733
518268
520402
521698
522238
523360
534512
538294
554370
557380
557984
558835
560851
565382
566538
566611
568555
570863
587896
590878
605456
609628
609652
617167
621407
624428
625322
630781
695411
778837
786243
786635
794060
]
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 (117513 , 143235 , 382851 , 385702 , 389167 , 394186 , 398018 , 398916 , 406565 , 424637 , 424780 , 431019 , 440759 , 447023 , 451011 , 454625 , 457275 , 464512 , 472928 , 480263 , 485748 , 486886 , 488783 , 494076 , 499749 , 501522 , 504376 , 508167 , 508803 , 511100 , 513361 , 513454 , 515733 , 518268 , 520402 , 521698 , 522238 , 523360 , 534512 , 538294 , 554370 , 557380 , 557984 , 558835 , 560851 , 565382 , 566538 , 566611 , 568555 , 570863 , 587896 , 590878 , 605456 , 609628 , 609652 , 617167 , 621407 , 624428 , 625322 , 630781 , 695411 , 778837 , 786243 , 786635 , 794060 );
Copy