4
17.67 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
432510
458394
459907
543133
558958
560507
551816
565788
567187
590076
591676
610828
619849
401620
501148
518761
455660
454994
509513
509998
512659
529777
414318
428451
589427
473899
559949
452965
526805
543565
552344
649179
621347
457490
421071
581715
516155
425336
519903
453726
414979
455151
425844
508974
520196
698312
456888
601949
471628
509345
513215
462208
496100
514311
523026
584739
524187
532129
523492
608200
687522
608242
612857
608737
608111
621454
622987
610303
625675
615429
557236
507596
565399
569955
]
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 (432510 , 458394 , 459907 , 543133 , 558958 , 560507 , 551816 , 565788 , 567187 , 590076 , 591676 , 610828 , 619849 , 401620 , 501148 , 518761 , 455660 , 454994 , 509513 , 509998 , 512659 , 529777 , 414318 , 428451 , 589427 , 473899 , 559949 , 452965 , 526805 , 543565 , 552344 , 649179 , 621347 , 457490 , 421071 , 581715 , 516155 , 425336 , 519903 , 453726 , 414979 , 455151 , 425844 , 508974 , 520196 , 698312 , 456888 , 601949 , 471628 , 509345 , 513215 , 462208 , 496100 , 514311 , 523026 , 584739 , 524187 , 532129 , 523492 , 608200 , 687522 , 608242 , 612857 , 608737 , 608111 , 621454 , 622987 , 610303 , 625675 , 615429 , 557236 , 507596 , 565399 , 569955 );
Copy
5
1.91 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
401620
414318
414979
421071
425336
425844
428451
432510
452965
453726
454994
455151
455660
456888
457490
458394
459907
462208
471628
473899
496100
501148
507596
508974
509345
509513
509998
512659
513215
514311
516155
518761
519903
520196
523026
523492
524187
526805
529777
532129
543133
543565
551816
552344
557236
558958
559949
560507
565399
565788
567187
569955
581715
584739
589427
590076
591676
601949
608111
608200
608242
608737
610303
610828
612857
615429
619849
621347
621454
622987
625675
649179
687522
698312
]
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 (401620 , 414318 , 414979 , 421071 , 425336 , 425844 , 428451 , 432510 , 452965 , 453726 , 454994 , 455151 , 455660 , 456888 , 457490 , 458394 , 459907 , 462208 , 471628 , 473899 , 496100 , 501148 , 507596 , 508974 , 509345 , 509513 , 509998 , 512659 , 513215 , 514311 , 516155 , 518761 , 519903 , 520196 , 523026 , 523492 , 524187 , 526805 , 529777 , 532129 , 543133 , 543565 , 551816 , 552344 , 557236 , 558958 , 559949 , 560507 , 565399 , 565788 , 567187 , 569955 , 581715 , 584739 , 589427 , 590076 , 591676 , 601949 , 608111 , 608200 , 608242 , 608737 , 610303 , 610828 , 612857 , 615429 , 619849 , 621347 , 621454 , 622987 , 625675 , 649179 , 687522 , 698312 );
Copy
6
76.76 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
401620
414318
414979
421071
425336
425844
428451
432510
452965
453726
454994
455151
455660
456888
457490
458394
459907
462208
471628
473899
496100
501148
507596
508974
509345
509513
509998
512659
513215
514311
516155
518761
519903
520196
523026
523492
524187
526805
529777
532129
543133
543565
551816
552344
557236
558958
559949
560507
565399
565788
567187
569955
581715
584739
589427
590076
591676
601949
608111
608200
608242
608737
610303
610828
612857
615429
619849
621347
621454
622987
625675
649179
687522
698312
]
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 (401620 , 414318 , 414979 , 421071 , 425336 , 425844 , 428451 , 432510 , 452965 , 453726 , 454994 , 455151 , 455660 , 456888 , 457490 , 458394 , 459907 , 462208 , 471628 , 473899 , 496100 , 501148 , 507596 , 508974 , 509345 , 509513 , 509998 , 512659 , 513215 , 514311 , 516155 , 518761 , 519903 , 520196 , 523026 , 523492 , 524187 , 526805 , 529777 , 532129 , 543133 , 543565 , 551816 , 552344 , 557236 , 558958 , 559949 , 560507 , 565399 , 565788 , 567187 , 569955 , 581715 , 584739 , 589427 , 590076 , 591676 , 601949 , 608111 , 608200 , 608242 , 608737 , 610303 , 610828 , 612857 , 615429 , 619849 , 621347 , 621454 , 622987 , 625675 , 649179 , 687522 , 698312 );
Copy