3
12.57 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
596437
536004
496080
659215
420726
486434
634482
632614
518243
552120
645238
634487
641141
599888
475971
591312
515538
476108
517869
469764
605374
578587
701348
532847
648853
775070
623380
421323
701010
516350
575810
532676
389208
601414
582277
662137
439649
647932
639796
523183
659258
484829
586591
436032
401919
614752
582540
476797
676089
634472
601583
457793
494978
482527
675296
513338
508523
531201
611558
544800
637049
698133
500904
516424
674994
535016
615881
588265
472750
526104
595791
609915
598105
590505
]
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 (596437 , 536004 , 496080 , 659215 , 420726 , 486434 , 634482 , 632614 , 518243 , 552120 , 645238 , 634487 , 641141 , 599888 , 475971 , 591312 , 515538 , 476108 , 517869 , 469764 , 605374 , 578587 , 701348 , 532847 , 648853 , 775070 , 623380 , 421323 , 701010 , 516350 , 575810 , 532676 , 389208 , 601414 , 582277 , 662137 , 439649 , 647932 , 639796 , 523183 , 659258 , 484829 , 586591 , 436032 , 401919 , 614752 , 582540 , 476797 , 676089 , 634472 , 601583 , 457793 , 494978 , 482527 , 675296 , 513338 , 508523 , 531201 , 611558 , 544800 , 637049 , 698133 , 500904 , 516424 , 674994 , 535016 , 615881 , 588265 , 472750 , 526104 , 595791 , 609915 , 598105 , 590505 );
Copy
4
2.71 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
389208
401919
420726
421323
436032
439649
457793
469764
472750
475971
476108
476797
482527
484829
486434
494978
496080
500904
508523
513338
515538
516350
516424
517869
518243
523183
526104
531201
532676
532847
535016
536004
544800
552120
575810
578587
582277
582540
586591
588265
590505
591312
595791
596437
598105
599888
601414
601583
605374
609915
611558
614752
615881
623380
632614
634472
634482
634487
637049
639796
641141
645238
647932
648853
659215
659258
662137
674994
675296
676089
698133
701010
701348
775070
]
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 (389208 , 401919 , 420726 , 421323 , 436032 , 439649 , 457793 , 469764 , 472750 , 475971 , 476108 , 476797 , 482527 , 484829 , 486434 , 494978 , 496080 , 500904 , 508523 , 513338 , 515538 , 516350 , 516424 , 517869 , 518243 , 523183 , 526104 , 531201 , 532676 , 532847 , 535016 , 536004 , 544800 , 552120 , 575810 , 578587 , 582277 , 582540 , 586591 , 588265 , 590505 , 591312 , 595791 , 596437 , 598105 , 599888 , 601414 , 601583 , 605374 , 609915 , 611558 , 614752 , 615881 , 623380 , 632614 , 634472 , 634482 , 634487 , 637049 , 639796 , 641141 , 645238 , 647932 , 648853 , 659215 , 659258 , 662137 , 674994 , 675296 , 676089 , 698133 , 701010 , 701348 , 775070 );
Copy
5
112.24 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
389208
401919
420726
421323
436032
439649
457793
469764
472750
475971
476108
476797
482527
484829
486434
494978
496080
500904
508523
513338
515538
516350
516424
517869
518243
523183
526104
531201
532676
532847
535016
536004
544800
552120
575810
578587
582277
582540
586591
588265
590505
591312
595791
596437
598105
599888
601414
601583
605374
609915
611558
614752
615881
623380
632614
634472
634482
634487
637049
639796
641141
645238
647932
648853
659215
659258
662137
674994
675296
676089
698133
701010
701348
775070
]
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 (389208 , 401919 , 420726 , 421323 , 436032 , 439649 , 457793 , 469764 , 472750 , 475971 , 476108 , 476797 , 482527 , 484829 , 486434 , 494978 , 496080 , 500904 , 508523 , 513338 , 515538 , 516350 , 516424 , 517869 , 518243 , 523183 , 526104 , 531201 , 532676 , 532847 , 535016 , 536004 , 544800 , 552120 , 575810 , 578587 , 582277 , 582540 , 586591 , 588265 , 590505 , 591312 , 595791 , 596437 , 598105 , 599888 , 601414 , 601583 , 605374 , 609915 , 611558 , 614752 , 615881 , 623380 , 632614 , 634472 , 634482 , 634487 , 637049 , 639796 , 641141 , 645238 , 647932 , 648853 , 659215 , 659258 , 662137 , 674994 , 675296 , 676089 , 698133 , 701010 , 701348 , 775070 );
Copy