4
12.06 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
549888
549981
674778
764376
770301
714499
620511
756426
764338
730674
764373
767330
708774
635236
633091
809639
566741
664484
735564
814143
537977
541394
579281
650160
664236
674044
580614
644018
629972
809718
786532
530481
524678
530942
554851
665984
700975
669035
552800
641997
774482
809720
420259
535042
544831
675373
670293
625801
535046
534381
535043
530943
537657
643100
533364
518384
636303
637741
500799
545615
680484
636304
630526
636299
533372
636294
636295
489424
636308
651674
545372
635243
636306
636300
]
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 (549888 , 549981 , 674778 , 764376 , 770301 , 714499 , 620511 , 756426 , 764338 , 730674 , 764373 , 767330 , 708774 , 635236 , 633091 , 809639 , 566741 , 664484 , 735564 , 814143 , 537977 , 541394 , 579281 , 650160 , 664236 , 674044 , 580614 , 644018 , 629972 , 809718 , 786532 , 530481 , 524678 , 530942 , 554851 , 665984 , 700975 , 669035 , 552800 , 641997 , 774482 , 809720 , 420259 , 535042 , 544831 , 675373 , 670293 , 625801 , 535046 , 534381 , 535043 , 530943 , 537657 , 643100 , 533364 , 518384 , 636303 , 637741 , 500799 , 545615 , 680484 , 636304 , 630526 , 636299 , 533372 , 636294 , 636295 , 489424 , 636308 , 651674 , 545372 , 635243 , 636306 , 636300 );
Copy
5
3.44 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
420259
489424
500799
518384
524678
530481
530942
530943
533364
533372
534381
535042
535043
535046
537657
537977
541394
544831
545372
545615
549888
549981
552800
554851
566741
579281
580614
620511
625801
629972
630526
633091
635236
635243
636294
636295
636299
636300
636303
636304
636306
636308
637741
641997
643100
644018
650160
651674
664236
664484
665984
669035
670293
674044
674778
675373
680484
700975
708774
714499
730674
735564
756426
764338
764373
764376
767330
770301
774482
786532
809639
809718
809720
814143
]
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 (420259 , 489424 , 500799 , 518384 , 524678 , 530481 , 530942 , 530943 , 533364 , 533372 , 534381 , 535042 , 535043 , 535046 , 537657 , 537977 , 541394 , 544831 , 545372 , 545615 , 549888 , 549981 , 552800 , 554851 , 566741 , 579281 , 580614 , 620511 , 625801 , 629972 , 630526 , 633091 , 635236 , 635243 , 636294 , 636295 , 636299 , 636300 , 636303 , 636304 , 636306 , 636308 , 637741 , 641997 , 643100 , 644018 , 650160 , 651674 , 664236 , 664484 , 665984 , 669035 , 670293 , 674044 , 674778 , 675373 , 680484 , 700975 , 708774 , 714499 , 730674 , 735564 , 756426 , 764338 , 764373 , 764376 , 767330 , 770301 , 774482 , 786532 , 809639 , 809718 , 809720 , 814143 );
Copy
6
77.38 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
420259
489424
500799
518384
524678
530481
530942
530943
533364
533372
534381
535042
535043
535046
537657
537977
541394
544831
545372
545615
549888
549981
552800
554851
566741
579281
580614
620511
625801
629972
630526
633091
635236
635243
636294
636295
636299
636300
636303
636304
636306
636308
637741
641997
643100
644018
650160
651674
664236
664484
665984
669035
670293
674044
674778
675373
680484
700975
708774
714499
730674
735564
756426
764338
764373
764376
767330
770301
774482
786532
809639
809718
809720
814143
]
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 (420259 , 489424 , 500799 , 518384 , 524678 , 530481 , 530942 , 530943 , 533364 , 533372 , 534381 , 535042 , 535043 , 535046 , 537657 , 537977 , 541394 , 544831 , 545372 , 545615 , 549888 , 549981 , 552800 , 554851 , 566741 , 579281 , 580614 , 620511 , 625801 , 629972 , 630526 , 633091 , 635236 , 635243 , 636294 , 636295 , 636299 , 636300 , 636303 , 636304 , 636306 , 636308 , 637741 , 641997 , 643100 , 644018 , 650160 , 651674 , 664236 , 664484 , 665984 , 669035 , 670293 , 674044 , 674778 , 675373 , 680484 , 700975 , 708774 , 714499 , 730674 , 735564 , 756426 , 764338 , 764373 , 764376 , 767330 , 770301 , 774482 , 786532 , 809639 , 809718 , 809720 , 814143 );
Copy