3
14.56 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
494786
498560
511554
526270
526827
483081
519721
536382
680824
507681
618889
397906
415957
436933
454206
667695
424259
432236
481361
400857
358887
415746
466026
421592
467493
360439
447500
514768
529998
483321
487577
390922
420767
453149
467036
515257
499826
643113
401064
482377
467451
420741
471365
485542
523081
428531
447132
480749
438851
395666
483107
516744
494978
520310
434192
427263
506801
518960
620249
605496
430404
527447
489950
518599
528089
591314
524848
434601
526220
]
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 (494786 , 498560 , 511554 , 526270 , 526827 , 483081 , 519721 , 536382 , 680824 , 507681 , 618889 , 397906 , 415957 , 436933 , 454206 , 667695 , 424259 , 432236 , 481361 , 400857 , 358887 , 415746 , 466026 , 421592 , 467493 , 360439 , 447500 , 514768 , 529998 , 483321 , 487577 , 390922 , 420767 , 453149 , 467036 , 515257 , 499826 , 643113 , 401064 , 482377 , 467451 , 420741 , 471365 , 485542 , 523081 , 428531 , 447132 , 480749 , 438851 , 395666 , 483107 , 516744 , 494978 , 520310 , 434192 , 427263 , 506801 , 518960 , 620249 , 605496 , 430404 , 527447 , 489950 , 518599 , 528089 , 591314 , 524848 , 434601 , 526220 );
Copy
4
3.12 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
358887
360439
390922
395666
397906
400857
401064
415746
415957
420741
420767
421592
424259
427263
428531
430404
432236
434192
434601
436933
438851
447132
447500
453149
454206
466026
467036
467451
467493
471365
480749
481361
482377
483081
483107
483321
485542
487577
489950
494786
494978
498560
499826
506801
507681
511554
514768
515257
516744
518599
518960
519721
520310
523081
524848
526220
526270
526827
527447
528089
529998
536382
591314
605496
618889
620249
643113
667695
680824
]
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 (358887 , 360439 , 390922 , 395666 , 397906 , 400857 , 401064 , 415746 , 415957 , 420741 , 420767 , 421592 , 424259 , 427263 , 428531 , 430404 , 432236 , 434192 , 434601 , 436933 , 438851 , 447132 , 447500 , 453149 , 454206 , 466026 , 467036 , 467451 , 467493 , 471365 , 480749 , 481361 , 482377 , 483081 , 483107 , 483321 , 485542 , 487577 , 489950 , 494786 , 494978 , 498560 , 499826 , 506801 , 507681 , 511554 , 514768 , 515257 , 516744 , 518599 , 518960 , 519721 , 520310 , 523081 , 524848 , 526220 , 526270 , 526827 , 527447 , 528089 , 529998 , 536382 , 591314 , 605496 , 618889 , 620249 , 643113 , 667695 , 680824 );
Copy
5
108.71 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
358887
360439
390922
395666
397906
400857
401064
415746
415957
420741
420767
421592
424259
427263
428531
430404
432236
434192
434601
436933
438851
447132
447500
453149
454206
466026
467036
467451
467493
471365
480749
481361
482377
483081
483107
483321
485542
487577
489950
494786
494978
498560
499826
506801
507681
511554
514768
515257
516744
518599
518960
519721
520310
523081
524848
526220
526270
526827
527447
528089
529998
536382
591314
605496
618889
620249
643113
667695
680824
]
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 (358887 , 360439 , 390922 , 395666 , 397906 , 400857 , 401064 , 415746 , 415957 , 420741 , 420767 , 421592 , 424259 , 427263 , 428531 , 430404 , 432236 , 434192 , 434601 , 436933 , 438851 , 447132 , 447500 , 453149 , 454206 , 466026 , 467036 , 467451 , 467493 , 471365 , 480749 , 481361 , 482377 , 483081 , 483107 , 483321 , 485542 , 487577 , 489950 , 494786 , 494978 , 498560 , 499826 , 506801 , 507681 , 511554 , 514768 , 515257 , 516744 , 518599 , 518960 , 519721 , 520310 , 523081 , 524848 , 526220 , 526270 , 526827 , 527447 , 528089 , 529998 , 536382 , 591314 , 605496 , 618889 , 620249 , 643113 , 667695 , 680824 );
Copy