3
14.37 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
458510
439290
543399
476655
465682
397255
423950
480335
546357
456435
558261
446251
434076
420565
447138
495172
518286
393986
382447
468784
571585
481102
473975
461499
396451
396942
454415
418957
403556
511356
724552
478425
428382
495340
498594
538203
325432
399230
494023
348918
395601
387805
416850
405324
381933
545685
450767
479019
454856
519496
517428
462000
494864
527341
575794
564009
538745
441389
647635
517775
568317
588294
406525
655697
480117
529450
]
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 (458510 , 439290 , 543399 , 476655 , 465682 , 397255 , 423950 , 480335 , 546357 , 456435 , 558261 , 446251 , 434076 , 420565 , 447138 , 495172 , 518286 , 393986 , 382447 , 468784 , 571585 , 481102 , 473975 , 461499 , 396451 , 396942 , 454415 , 418957 , 403556 , 511356 , 724552 , 478425 , 428382 , 495340 , 498594 , 538203 , 325432 , 399230 , 494023 , 348918 , 395601 , 387805 , 416850 , 405324 , 381933 , 545685 , 450767 , 479019 , 454856 , 519496 , 517428 , 462000 , 494864 , 527341 , 575794 , 564009 , 538745 , 441389 , 647635 , 517775 , 568317 , 588294 , 406525 , 655697 , 480117 , 529450 );
Copy
4
4.89 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
325432
348918
381933
382447
387805
393986
395601
396451
396942
397255
399230
403556
405324
406525
416850
418957
420565
423950
428382
434076
439290
441389
446251
447138
450767
454415
454856
456435
458510
461499
462000
465682
468784
473975
476655
478425
479019
480117
480335
481102
494023
494864
495172
495340
498594
511356
517428
517775
518286
519496
527341
529450
538203
538745
543399
545685
546357
558261
564009
568317
571585
575794
588294
647635
655697
724552
]
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 (325432 , 348918 , 381933 , 382447 , 387805 , 393986 , 395601 , 396451 , 396942 , 397255 , 399230 , 403556 , 405324 , 406525 , 416850 , 418957 , 420565 , 423950 , 428382 , 434076 , 439290 , 441389 , 446251 , 447138 , 450767 , 454415 , 454856 , 456435 , 458510 , 461499 , 462000 , 465682 , 468784 , 473975 , 476655 , 478425 , 479019 , 480117 , 480335 , 481102 , 494023 , 494864 , 495172 , 495340 , 498594 , 511356 , 517428 , 517775 , 518286 , 519496 , 527341 , 529450 , 538203 , 538745 , 543399 , 545685 , 546357 , 558261 , 564009 , 568317 , 571585 , 575794 , 588294 , 647635 , 655697 , 724552 );
Copy
5
132.08 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
325432
348918
381933
382447
387805
393986
395601
396451
396942
397255
399230
403556
405324
406525
416850
418957
420565
423950
428382
434076
439290
441389
446251
447138
450767
454415
454856
456435
458510
461499
462000
465682
468784
473975
476655
478425
479019
480117
480335
481102
494023
494864
495172
495340
498594
511356
517428
517775
518286
519496
527341
529450
538203
538745
543399
545685
546357
558261
564009
568317
571585
575794
588294
647635
655697
724552
]
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 (325432 , 348918 , 381933 , 382447 , 387805 , 393986 , 395601 , 396451 , 396942 , 397255 , 399230 , 403556 , 405324 , 406525 , 416850 , 418957 , 420565 , 423950 , 428382 , 434076 , 439290 , 441389 , 446251 , 447138 , 450767 , 454415 , 454856 , 456435 , 458510 , 461499 , 462000 , 465682 , 468784 , 473975 , 476655 , 478425 , 479019 , 480117 , 480335 , 481102 , 494023 , 494864 , 495172 , 495340 , 498594 , 511356 , 517428 , 517775 , 518286 , 519496 , 527341 , 529450 , 538203 , 538745 , 543399 , 545685 , 546357 , 558261 , 564009 , 568317 , 571585 , 575794 , 588294 , 647635 , 655697 , 724552 );
Copy