3
9.91 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
489424
741181
530012
770301
708774
745341
756426
659420
760042
664484
541394
580614
656520
787278
664236
530481
650160
599999
637154
597591
554851
530942
669035
420259
524678
700975
552800
670293
598086
532729
544831
625801
455890
600237
530943
534381
518547
537657
643100
596643
533364
537988
636299
636304
630526
636303
680484
598686
533372
704523
636295
500799
636308
636294
636306
545372
636300
651674
635243
818856
665984
641997
566621
415199
464612
469560
637741
559577
]
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 (489424 , 741181 , 530012 , 770301 , 708774 , 745341 , 756426 , 659420 , 760042 , 664484 , 541394 , 580614 , 656520 , 787278 , 664236 , 530481 , 650160 , 599999 , 637154 , 597591 , 554851 , 530942 , 669035 , 420259 , 524678 , 700975 , 552800 , 670293 , 598086 , 532729 , 544831 , 625801 , 455890 , 600237 , 530943 , 534381 , 518547 , 537657 , 643100 , 596643 , 533364 , 537988 , 636299 , 636304 , 630526 , 636303 , 680484 , 598686 , 533372 , 704523 , 636295 , 500799 , 636308 , 636294 , 636306 , 545372 , 636300 , 651674 , 635243 , 818856 , 665984 , 641997 , 566621 , 415199 , 464612 , 469560 , 637741 , 559577 );
Copy
4
207.92 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
415199
420259
455890
464612
469560
489424
500799
518547
524678
530012
530481
530942
530943
532729
533364
533372
534381
537657
537988
541394
544831
545372
552800
554851
559577
566621
580614
596643
597591
598086
598686
599999
600237
625801
630526
635243
636294
636295
636299
636300
636303
636304
636306
636308
637154
637741
641997
643100
650160
651674
656520
659420
664236
664484
665984
669035
670293
680484
700975
704523
708774
741181
745341
756426
760042
770301
787278
818856
]
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 (415199 , 420259 , 455890 , 464612 , 469560 , 489424 , 500799 , 518547 , 524678 , 530012 , 530481 , 530942 , 530943 , 532729 , 533364 , 533372 , 534381 , 537657 , 537988 , 541394 , 544831 , 545372 , 552800 , 554851 , 559577 , 566621 , 580614 , 596643 , 597591 , 598086 , 598686 , 599999 , 600237 , 625801 , 630526 , 635243 , 636294 , 636295 , 636299 , 636300 , 636303 , 636304 , 636306 , 636308 , 637154 , 637741 , 641997 , 643100 , 650160 , 651674 , 656520 , 659420 , 664236 , 664484 , 665984 , 669035 , 670293 , 680484 , 700975 , 704523 , 708774 , 741181 , 745341 , 756426 , 760042 , 770301 , 787278 , 818856 );
Copy
5
82.32 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
415199
420259
455890
464612
469560
489424
500799
518547
524678
530012
530481
530942
530943
532729
533364
533372
534381
537657
537988
541394
544831
545372
552800
554851
559577
566621
580614
596643
597591
598086
598686
599999
600237
625801
630526
635243
636294
636295
636299
636300
636303
636304
636306
636308
637154
637741
641997
643100
650160
651674
656520
659420
664236
664484
665984
669035
670293
680484
700975
704523
708774
741181
745341
756426
760042
770301
787278
818856
]
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 (415199 , 420259 , 455890 , 464612 , 469560 , 489424 , 500799 , 518547 , 524678 , 530012 , 530481 , 530942 , 530943 , 532729 , 533364 , 533372 , 534381 , 537657 , 537988 , 541394 , 544831 , 545372 , 552800 , 554851 , 559577 , 566621 , 580614 , 596643 , 597591 , 598086 , 598686 , 599999 , 600237 , 625801 , 630526 , 635243 , 636294 , 636295 , 636299 , 636300 , 636303 , 636304 , 636306 , 636308 , 637154 , 637741 , 641997 , 643100 , 650160 , 651674 , 656520 , 659420 , 664236 , 664484 , 665984 , 669035 , 670293 , 680484 , 700975 , 704523 , 708774 , 741181 , 745341 , 756426 , 760042 , 770301 , 787278 , 818856 );
Copy