3
11.27 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
688880
580555
442810
458342
419429
565938
507194
591868
483705
395343
420065
579979
528655
582808
535698
526272
480164
397083
580152
555578
775351
523663
536978
549332
521041
542541
410029
510377
390939
410847
424853
417673
441603
514053
441664
393355
563294
596363
548201
494601
518269
582088
455782
444562
519165
431439
592613
521725
589071
522025
416164
568046
439405
463468
419445
530041
542757
562505
575213
621617
524570
578490
598286
416648
480004
429342
539292
585999
596196
521507
587326
550571
560215
540153
]
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 (688880 , 580555 , 442810 , 458342 , 419429 , 565938 , 507194 , 591868 , 483705 , 395343 , 420065 , 579979 , 528655 , 582808 , 535698 , 526272 , 480164 , 397083 , 580152 , 555578 , 775351 , 523663 , 536978 , 549332 , 521041 , 542541 , 410029 , 510377 , 390939 , 410847 , 424853 , 417673 , 441603 , 514053 , 441664 , 393355 , 563294 , 596363 , 548201 , 494601 , 518269 , 582088 , 455782 , 444562 , 519165 , 431439 , 592613 , 521725 , 589071 , 522025 , 416164 , 568046 , 439405 , 463468 , 419445 , 530041 , 542757 , 562505 , 575213 , 621617 , 524570 , 578490 , 598286 , 416648 , 480004 , 429342 , 539292 , 585999 , 596196 , 521507 , 587326 , 550571 , 560215 , 540153 );
Copy
4
2.25 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
390939
393355
395343
397083
410029
410847
416164
416648
417673
419429
419445
420065
424853
429342
431439
439405
441603
441664
442810
444562
455782
458342
463468
480004
480164
483705
494601
507194
510377
514053
518269
519165
521041
521507
521725
522025
523663
524570
526272
528655
530041
535698
536978
539292
540153
542541
542757
548201
549332
550571
555578
560215
562505
563294
565938
568046
575213
578490
579979
580152
580555
582088
582808
585999
587326
589071
591868
592613
596196
596363
598286
621617
688880
775351
]
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 (390939 , 393355 , 395343 , 397083 , 410029 , 410847 , 416164 , 416648 , 417673 , 419429 , 419445 , 420065 , 424853 , 429342 , 431439 , 439405 , 441603 , 441664 , 442810 , 444562 , 455782 , 458342 , 463468 , 480004 , 480164 , 483705 , 494601 , 507194 , 510377 , 514053 , 518269 , 519165 , 521041 , 521507 , 521725 , 522025 , 523663 , 524570 , 526272 , 528655 , 530041 , 535698 , 536978 , 539292 , 540153 , 542541 , 542757 , 548201 , 549332 , 550571 , 555578 , 560215 , 562505 , 563294 , 565938 , 568046 , 575213 , 578490 , 579979 , 580152 , 580555 , 582088 , 582808 , 585999 , 587326 , 589071 , 591868 , 592613 , 596196 , 596363 , 598286 , 621617 , 688880 , 775351 );
Copy
5
87.63 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
390939
393355
395343
397083
410029
410847
416164
416648
417673
419429
419445
420065
424853
429342
431439
439405
441603
441664
442810
444562
455782
458342
463468
480004
480164
483705
494601
507194
510377
514053
518269
519165
521041
521507
521725
522025
523663
524570
526272
528655
530041
535698
536978
539292
540153
542541
542757
548201
549332
550571
555578
560215
562505
563294
565938
568046
575213
578490
579979
580152
580555
582088
582808
585999
587326
589071
591868
592613
596196
596363
598286
621617
688880
775351
]
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 (390939 , 393355 , 395343 , 397083 , 410029 , 410847 , 416164 , 416648 , 417673 , 419429 , 419445 , 420065 , 424853 , 429342 , 431439 , 439405 , 441603 , 441664 , 442810 , 444562 , 455782 , 458342 , 463468 , 480004 , 480164 , 483705 , 494601 , 507194 , 510377 , 514053 , 518269 , 519165 , 521041 , 521507 , 521725 , 522025 , 523663 , 524570 , 526272 , 528655 , 530041 , 535698 , 536978 , 539292 , 540153 , 542541 , 542757 , 548201 , 549332 , 550571 , 555578 , 560215 , 562505 , 563294 , 565938 , 568046 , 575213 , 578490 , 579979 , 580152 , 580555 , 582088 , 582808 , 585999 , 587326 , 589071 , 591868 , 592613 , 596196 , 596363 , 598286 , 621617 , 688880 , 775351 );
Copy