3
11.70 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
457751
810705
743765
722494
722529
722499
722527
560184
788570
513660
651392
528886
399310
399747
399306
399412
373741
399674
397648
403255
397232
399418
392797
399737
399378
595421
15162
397505
386271
395489
399292
560639
396565
397293
447572
398317
399250
477238
399253
399358
399722
399354
399401
423708
448864
732574
463262
395406
395446
399414
500431
485110
390024
437526
429729
435624
421557
563992
604417
429424
420345
510270
413944
417889
396742
480439
399263
506143
460706
434001
417482
418363
609922
604478
]
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 (457751 , 810705 , 743765 , 722494 , 722529 , 722499 , 722527 , 560184 , 788570 , 513660 , 651392 , 528886 , 399310 , 399747 , 399306 , 399412 , 373741 , 399674 , 397648 , 403255 , 397232 , 399418 , 392797 , 399737 , 399378 , 595421 , 15162 , 397505 , 386271 , 395489 , 399292 , 560639 , 396565 , 397293 , 447572 , 398317 , 399250 , 477238 , 399253 , 399358 , 399722 , 399354 , 399401 , 423708 , 448864 , 732574 , 463262 , 395406 , 395446 , 399414 , 500431 , 485110 , 390024 , 437526 , 429729 , 435624 , 421557 , 563992 , 604417 , 429424 , 420345 , 510270 , 413944 , 417889 , 396742 , 480439 , 399263 , 506143 , 460706 , 434001 , 417482 , 418363 , 609922 , 604478 );
Copy
4
2.66 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
15162
373741
386271
390024
392797
395406
395446
395489
396565
396742
397232
397293
397505
397648
398317
399250
399253
399263
399292
399306
399310
399354
399358
399378
399401
399412
399414
399418
399674
399722
399737
399747
403255
413944
417482
417889
418363
420345
421557
423708
429424
429729
434001
435624
437526
447572
448864
457751
460706
463262
477238
480439
485110
500431
506143
510270
513660
528886
560184
560639
563992
595421
604417
604478
609922
651392
722494
722499
722527
722529
732574
743765
788570
810705
]
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 (15162 , 373741 , 386271 , 390024 , 392797 , 395406 , 395446 , 395489 , 396565 , 396742 , 397232 , 397293 , 397505 , 397648 , 398317 , 399250 , 399253 , 399263 , 399292 , 399306 , 399310 , 399354 , 399358 , 399378 , 399401 , 399412 , 399414 , 399418 , 399674 , 399722 , 399737 , 399747 , 403255 , 413944 , 417482 , 417889 , 418363 , 420345 , 421557 , 423708 , 429424 , 429729 , 434001 , 435624 , 437526 , 447572 , 448864 , 457751 , 460706 , 463262 , 477238 , 480439 , 485110 , 500431 , 506143 , 510270 , 513660 , 528886 , 560184 , 560639 , 563992 , 595421 , 604417 , 604478 , 609922 , 651392 , 722494 , 722499 , 722527 , 722529 , 732574 , 743765 , 788570 , 810705 );
Copy
5
84.22 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
15162
373741
386271
390024
392797
395406
395446
395489
396565
396742
397232
397293
397505
397648
398317
399250
399253
399263
399292
399306
399310
399354
399358
399378
399401
399412
399414
399418
399674
399722
399737
399747
403255
413944
417482
417889
418363
420345
421557
423708
429424
429729
434001
435624
437526
447572
448864
457751
460706
463262
477238
480439
485110
500431
506143
510270
513660
528886
560184
560639
563992
595421
604417
604478
609922
651392
722494
722499
722527
722529
732574
743765
788570
810705
]
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 (15162 , 373741 , 386271 , 390024 , 392797 , 395406 , 395446 , 395489 , 396565 , 396742 , 397232 , 397293 , 397505 , 397648 , 398317 , 399250 , 399253 , 399263 , 399292 , 399306 , 399310 , 399354 , 399358 , 399378 , 399401 , 399412 , 399414 , 399418 , 399674 , 399722 , 399737 , 399747 , 403255 , 413944 , 417482 , 417889 , 418363 , 420345 , 421557 , 423708 , 429424 , 429729 , 434001 , 435624 , 437526 , 447572 , 448864 , 457751 , 460706 , 463262 , 477238 , 480439 , 485110 , 500431 , 506143 , 510270 , 513660 , 528886 , 560184 , 560639 , 563992 , 595421 , 604417 , 604478 , 609922 , 651392 , 722494 , 722499 , 722527 , 722529 , 732574 , 743765 , 788570 , 810705 );
Copy