3
12.10 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
495121
579379
596228
434309
511951
820952
668705
616798
591961
794619
798251
732933
731005
444736
559567
434155
654677
805629
731110
450913
548264
514023
486539
820338
820337
478844
717676
482566
572838
625558
611347
796696
615712
434344
569258
445408
575261
519034
580300
430357
437594
541188
663384
604513
475426
611351
462365
582531
522797
519037
531497
517444
578302
552362
603445
683083
573501
435479
523356
582617
599080
624110
463215
503194
562777
557259
563634
500477
]
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 (495121 , 579379 , 596228 , 434309 , 511951 , 820952 , 668705 , 616798 , 591961 , 794619 , 798251 , 732933 , 731005 , 444736 , 559567 , 434155 , 654677 , 805629 , 731110 , 450913 , 548264 , 514023 , 486539 , 820338 , 820337 , 478844 , 717676 , 482566 , 572838 , 625558 , 611347 , 796696 , 615712 , 434344 , 569258 , 445408 , 575261 , 519034 , 580300 , 430357 , 437594 , 541188 , 663384 , 604513 , 475426 , 611351 , 462365 , 582531 , 522797 , 519037 , 531497 , 517444 , 578302 , 552362 , 603445 , 683083 , 573501 , 435479 , 523356 , 582617 , 599080 , 624110 , 463215 , 503194 , 562777 , 557259 , 563634 , 500477 );
Copy
4
2.98 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
430357
434155
434309
434344
435479
437594
444736
445408
450913
462365
463215
475426
478844
482566
486539
495121
500477
503194
511951
514023
517444
519034
519037
522797
523356
531497
541188
548264
552362
557259
559567
562777
563634
569258
572838
573501
575261
578302
579379
580300
582531
582617
591961
596228
599080
603445
604513
611347
611351
615712
616798
624110
625558
654677
663384
668705
683083
717676
731005
731110
732933
794619
796696
798251
805629
820337
820338
820952
]
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 (430357 , 434155 , 434309 , 434344 , 435479 , 437594 , 444736 , 445408 , 450913 , 462365 , 463215 , 475426 , 478844 , 482566 , 486539 , 495121 , 500477 , 503194 , 511951 , 514023 , 517444 , 519034 , 519037 , 522797 , 523356 , 531497 , 541188 , 548264 , 552362 , 557259 , 559567 , 562777 , 563634 , 569258 , 572838 , 573501 , 575261 , 578302 , 579379 , 580300 , 582531 , 582617 , 591961 , 596228 , 599080 , 603445 , 604513 , 611347 , 611351 , 615712 , 616798 , 624110 , 625558 , 654677 , 663384 , 668705 , 683083 , 717676 , 731005 , 731110 , 732933 , 794619 , 796696 , 798251 , 805629 , 820337 , 820338 , 820952 );
Copy
5
86.04 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
430357
434155
434309
434344
435479
437594
444736
445408
450913
462365
463215
475426
478844
482566
486539
495121
500477
503194
511951
514023
517444
519034
519037
522797
523356
531497
541188
548264
552362
557259
559567
562777
563634
569258
572838
573501
575261
578302
579379
580300
582531
582617
591961
596228
599080
603445
604513
611347
611351
615712
616798
624110
625558
654677
663384
668705
683083
717676
731005
731110
732933
794619
796696
798251
805629
820337
820338
820952
]
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 (430357 , 434155 , 434309 , 434344 , 435479 , 437594 , 444736 , 445408 , 450913 , 462365 , 463215 , 475426 , 478844 , 482566 , 486539 , 495121 , 500477 , 503194 , 511951 , 514023 , 517444 , 519034 , 519037 , 522797 , 523356 , 531497 , 541188 , 548264 , 552362 , 557259 , 559567 , 562777 , 563634 , 569258 , 572838 , 573501 , 575261 , 578302 , 579379 , 580300 , 582531 , 582617 , 591961 , 596228 , 599080 , 603445 , 604513 , 611347 , 611351 , 615712 , 616798 , 624110 , 625558 , 654677 , 663384 , 668705 , 683083 , 717676 , 731005 , 731110 , 732933 , 794619 , 796696 , 798251 , 805629 , 820337 , 820338 , 820952 );
Copy