3
10.76 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
433687
418098
727002
507290
531542
532701
443622
455044
516427
807958
503418
800556
415917
513102
510186
431020
629333
647305
538542
593021
731877
465099
525174
424831
573429
534390
466678
533209
531543
654174
620569
536559
566020
381933
509309
477705
485712
558804
500226
429604
443767
602532
482602
576529
553300
462305
485700
615898
455859
599556
510501
418339
467712
560229
485703
520246
556005
507911
592996
476808
635222
621504
527065
565197
430810
593343
]
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 (433687 , 418098 , 727002 , 507290 , 531542 , 532701 , 443622 , 455044 , 516427 , 807958 , 503418 , 800556 , 415917 , 513102 , 510186 , 431020 , 629333 , 647305 , 538542 , 593021 , 731877 , 465099 , 525174 , 424831 , 573429 , 534390 , 466678 , 533209 , 531543 , 654174 , 620569 , 536559 , 566020 , 381933 , 509309 , 477705 , 485712 , 558804 , 500226 , 429604 , 443767 , 602532 , 482602 , 576529 , 553300 , 462305 , 485700 , 615898 , 455859 , 599556 , 510501 , 418339 , 467712 , 560229 , 485703 , 520246 , 556005 , 507911 , 592996 , 476808 , 635222 , 621504 , 527065 , 565197 , 430810 , 593343 );
Copy
4
2.75 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
381933
415917
418098
418339
424831
429604
430810
431020
433687
443622
443767
455044
455859
462305
465099
466678
467712
476808
477705
482602
485700
485703
485712
500226
503418
507290
507911
509309
510186
510501
513102
516427
520246
525174
527065
531542
531543
532701
533209
534390
536559
538542
553300
556005
558804
560229
565197
566020
573429
576529
592996
593021
593343
599556
602532
615898
620569
621504
629333
635222
647305
654174
727002
731877
800556
807958
]
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 (381933 , 415917 , 418098 , 418339 , 424831 , 429604 , 430810 , 431020 , 433687 , 443622 , 443767 , 455044 , 455859 , 462305 , 465099 , 466678 , 467712 , 476808 , 477705 , 482602 , 485700 , 485703 , 485712 , 500226 , 503418 , 507290 , 507911 , 509309 , 510186 , 510501 , 513102 , 516427 , 520246 , 525174 , 527065 , 531542 , 531543 , 532701 , 533209 , 534390 , 536559 , 538542 , 553300 , 556005 , 558804 , 560229 , 565197 , 566020 , 573429 , 576529 , 592996 , 593021 , 593343 , 599556 , 602532 , 615898 , 620569 , 621504 , 629333 , 635222 , 647305 , 654174 , 727002 , 731877 , 800556 , 807958 );
Copy
5
87.77 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
381933
415917
418098
418339
424831
429604
430810
431020
433687
443622
443767
455044
455859
462305
465099
466678
467712
476808
477705
482602
485700
485703
485712
500226
503418
507290
507911
509309
510186
510501
513102
516427
520246
525174
527065
531542
531543
532701
533209
534390
536559
538542
553300
556005
558804
560229
565197
566020
573429
576529
592996
593021
593343
599556
602532
615898
620569
621504
629333
635222
647305
654174
727002
731877
800556
807958
]
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 (381933 , 415917 , 418098 , 418339 , 424831 , 429604 , 430810 , 431020 , 433687 , 443622 , 443767 , 455044 , 455859 , 462305 , 465099 , 466678 , 467712 , 476808 , 477705 , 482602 , 485700 , 485703 , 485712 , 500226 , 503418 , 507290 , 507911 , 509309 , 510186 , 510501 , 513102 , 516427 , 520246 , 525174 , 527065 , 531542 , 531543 , 532701 , 533209 , 534390 , 536559 , 538542 , 553300 , 556005 , 558804 , 560229 , 565197 , 566020 , 573429 , 576529 , 592996 , 593021 , 593343 , 599556 , 602532 , 615898 , 620569 , 621504 , 629333 , 635222 , 647305 , 654174 , 727002 , 731877 , 800556 , 807958 );
Copy