3
12.54 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
460315
480238
531803
508284
478474
593921
404399
464945
459032
438937
401116
465404
470618
431231
444098
488059
506059
518915
525758
513015
486152
507317
566082
401183
412636
422285
419245
426219
417880
452435
455578
460187
461861
469513
495763
441081
443234
460362
519358
487628
449385
581692
548046
429424
437523
442967
456571
456942
440654
451595
486082
476605
448798
463165
431333
475984
504909
485242
476752
420741
520766
572762
533137
526531
598029
616971
597193
598657
]
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 (460315 , 480238 , 531803 , 508284 , 478474 , 593921 , 404399 , 464945 , 459032 , 438937 , 401116 , 465404 , 470618 , 431231 , 444098 , 488059 , 506059 , 518915 , 525758 , 513015 , 486152 , 507317 , 566082 , 401183 , 412636 , 422285 , 419245 , 426219 , 417880 , 452435 , 455578 , 460187 , 461861 , 469513 , 495763 , 441081 , 443234 , 460362 , 519358 , 487628 , 449385 , 581692 , 548046 , 429424 , 437523 , 442967 , 456571 , 456942 , 440654 , 451595 , 486082 , 476605 , 448798 , 463165 , 431333 , 475984 , 504909 , 485242 , 476752 , 420741 , 520766 , 572762 , 533137 , 526531 , 598029 , 616971 , 597193 , 598657 );
Copy
4
3.16 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
401116
401183
404399
412636
417880
419245
420741
422285
426219
429424
431231
431333
437523
438937
440654
441081
442967
443234
444098
448798
449385
451595
452435
455578
456571
456942
459032
460187
460315
460362
461861
463165
464945
465404
469513
470618
475984
476605
476752
478474
480238
485242
486082
486152
487628
488059
495763
504909
506059
507317
508284
513015
518915
519358
520766
525758
526531
531803
533137
548046
566082
572762
581692
593921
597193
598029
598657
616971
]
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 (401116 , 401183 , 404399 , 412636 , 417880 , 419245 , 420741 , 422285 , 426219 , 429424 , 431231 , 431333 , 437523 , 438937 , 440654 , 441081 , 442967 , 443234 , 444098 , 448798 , 449385 , 451595 , 452435 , 455578 , 456571 , 456942 , 459032 , 460187 , 460315 , 460362 , 461861 , 463165 , 464945 , 465404 , 469513 , 470618 , 475984 , 476605 , 476752 , 478474 , 480238 , 485242 , 486082 , 486152 , 487628 , 488059 , 495763 , 504909 , 506059 , 507317 , 508284 , 513015 , 518915 , 519358 , 520766 , 525758 , 526531 , 531803 , 533137 , 548046 , 566082 , 572762 , 581692 , 593921 , 597193 , 598029 , 598657 , 616971 );
Copy
5
109.29 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
401116
401183
404399
412636
417880
419245
420741
422285
426219
429424
431231
431333
437523
438937
440654
441081
442967
443234
444098
448798
449385
451595
452435
455578
456571
456942
459032
460187
460315
460362
461861
463165
464945
465404
469513
470618
475984
476605
476752
478474
480238
485242
486082
486152
487628
488059
495763
504909
506059
507317
508284
513015
518915
519358
520766
525758
526531
531803
533137
548046
566082
572762
581692
593921
597193
598029
598657
616971
]
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 (401116 , 401183 , 404399 , 412636 , 417880 , 419245 , 420741 , 422285 , 426219 , 429424 , 431231 , 431333 , 437523 , 438937 , 440654 , 441081 , 442967 , 443234 , 444098 , 448798 , 449385 , 451595 , 452435 , 455578 , 456571 , 456942 , 459032 , 460187 , 460315 , 460362 , 461861 , 463165 , 464945 , 465404 , 469513 , 470618 , 475984 , 476605 , 476752 , 478474 , 480238 , 485242 , 486082 , 486152 , 487628 , 488059 , 495763 , 504909 , 506059 , 507317 , 508284 , 513015 , 518915 , 519358 , 520766 , 525758 , 526531 , 531803 , 533137 , 548046 , 566082 , 572762 , 581692 , 593921 , 597193 , 598029 , 598657 , 616971 );
Copy