3
220.78 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
827421
718271
733037
727785
815437
641368
628527
750891
828863
717644
596392
618611
503556
734324
794261
819650
828423
792704
823003
172322
822688
789604
823564
805355
792961
804407
580047
596969
604086
102234
596795
776176
795754
403539
407187
644051
502259
383002
459257
813431
782155
814887
465003
578698
614518
615971
795426
731104
492620
387033
532993
547641
799639
466092
446920
459338
471141
577394
716765
596193
431803
490188
476578
526761
566317
422053
454425
473463
482263
437868
]
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 (827421 , 718271 , 733037 , 727785 , 815437 , 641368 , 628527 , 750891 , 828863 , 717644 , 596392 , 618611 , 503556 , 734324 , 794261 , 819650 , 828423 , 792704 , 823003 , 172322 , 822688 , 789604 , 823564 , 805355 , 792961 , 804407 , 580047 , 596969 , 604086 , 102234 , 596795 , 776176 , 795754 , 403539 , 407187 , 644051 , 502259 , 383002 , 459257 , 813431 , 782155 , 814887 , 465003 , 578698 , 614518 , 615971 , 795426 , 731104 , 492620 , 387033 , 532993 , 547641 , 799639 , 466092 , 446920 , 459338 , 471141 , 577394 , 716765 , 596193 , 431803 , 490188 , 476578 , 526761 , 566317 , 422053 , 454425 , 473463 , 482263 , 437868 );
Copy
4
3.46 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
102234
172322
383002
387033
403539
407187
422053
431803
437868
446920
454425
459257
459338
465003
466092
471141
473463
476578
482263
490188
492620
502259
503556
526761
532993
547641
566317
577394
578698
580047
596193
596392
596795
596969
604086
614518
615971
618611
628527
641368
644051
716765
717644
718271
727785
731104
733037
734324
750891
776176
782155
789604
792704
792961
794261
795426
795754
799639
804407
805355
813431
814887
815437
819650
822688
823003
823564
827421
828423
828863
]
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 (102234 , 172322 , 383002 , 387033 , 403539 , 407187 , 422053 , 431803 , 437868 , 446920 , 454425 , 459257 , 459338 , 465003 , 466092 , 471141 , 473463 , 476578 , 482263 , 490188 , 492620 , 502259 , 503556 , 526761 , 532993 , 547641 , 566317 , 577394 , 578698 , 580047 , 596193 , 596392 , 596795 , 596969 , 604086 , 614518 , 615971 , 618611 , 628527 , 641368 , 644051 , 716765 , 717644 , 718271 , 727785 , 731104 , 733037 , 734324 , 750891 , 776176 , 782155 , 789604 , 792704 , 792961 , 794261 , 795426 , 795754 , 799639 , 804407 , 805355 , 813431 , 814887 , 815437 , 819650 , 822688 , 823003 , 823564 , 827421 , 828423 , 828863 );
Copy
5
76.18 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
102234
172322
383002
387033
403539
407187
422053
431803
437868
446920
454425
459257
459338
465003
466092
471141
473463
476578
482263
490188
492620
502259
503556
526761
532993
547641
566317
577394
578698
580047
596193
596392
596795
596969
604086
614518
615971
618611
628527
641368
644051
716765
717644
718271
727785
731104
733037
734324
750891
776176
782155
789604
792704
792961
794261
795426
795754
799639
804407
805355
813431
814887
815437
819650
822688
823003
823564
827421
828423
828863
]
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 (102234 , 172322 , 383002 , 387033 , 403539 , 407187 , 422053 , 431803 , 437868 , 446920 , 454425 , 459257 , 459338 , 465003 , 466092 , 471141 , 473463 , 476578 , 482263 , 490188 , 492620 , 502259 , 503556 , 526761 , 532993 , 547641 , 566317 , 577394 , 578698 , 580047 , 596193 , 596392 , 596795 , 596969 , 604086 , 614518 , 615971 , 618611 , 628527 , 641368 , 644051 , 716765 , 717644 , 718271 , 727785 , 731104 , 733037 , 734324 , 750891 , 776176 , 782155 , 789604 , 792704 , 792961 , 794261 , 795426 , 795754 , 799639 , 804407 , 805355 , 813431 , 814887 , 815437 , 819650 , 822688 , 823003 , 823564 , 827421 , 828423 , 828863 );
Copy