3
12.80 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
601337
496606
527298
499482
444030
496608
520611
651920
496607
715394
566593
601216
611507
709533
467494
461406
507686
525747
455531
451749
722277
772399
496597
572272
496611
496613
500526
496528
496598
567361
575224
591073
619739
475180
524178
680267
486977
807356
533588
407551
482358
505822
512212
440966
474264
519565
511031
591292
526270
457948
467542
532362
511028
496603
563473
491781
617621
475100
468950
467446
480373
511527
523161
480526
659025
475473
427946
504651
581809
499878
591216
599512
]
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 (601337 , 496606 , 527298 , 499482 , 444030 , 496608 , 520611 , 651920 , 496607 , 715394 , 566593 , 601216 , 611507 , 709533 , 467494 , 461406 , 507686 , 525747 , 455531 , 451749 , 722277 , 772399 , 496597 , 572272 , 496611 , 496613 , 500526 , 496528 , 496598 , 567361 , 575224 , 591073 , 619739 , 475180 , 524178 , 680267 , 486977 , 807356 , 533588 , 407551 , 482358 , 505822 , 512212 , 440966 , 474264 , 519565 , 511031 , 591292 , 526270 , 457948 , 467542 , 532362 , 511028 , 496603 , 563473 , 491781 , 617621 , 475100 , 468950 , 467446 , 480373 , 511527 , 523161 , 480526 , 659025 , 475473 , 427946 , 504651 , 581809 , 499878 , 591216 , 599512 );
Copy
4
207.23 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
407551
427946
440966
444030
451749
455531
457948
461406
467446
467494
467542
468950
474264
475100
475180
475473
480373
480526
482358
486977
491781
496528
496597
496598
496603
496606
496607
496608
496611
496613
499482
499878
500526
504651
505822
507686
511028
511031
511527
512212
519565
520611
523161
524178
525747
526270
527298
532362
533588
563473
566593
567361
572272
575224
581809
591073
591216
591292
599512
601216
601337
611507
617621
619739
651920
659025
680267
709533
715394
722277
772399
807356
]
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 (407551 , 427946 , 440966 , 444030 , 451749 , 455531 , 457948 , 461406 , 467446 , 467494 , 467542 , 468950 , 474264 , 475100 , 475180 , 475473 , 480373 , 480526 , 482358 , 486977 , 491781 , 496528 , 496597 , 496598 , 496603 , 496606 , 496607 , 496608 , 496611 , 496613 , 499482 , 499878 , 500526 , 504651 , 505822 , 507686 , 511028 , 511031 , 511527 , 512212 , 519565 , 520611 , 523161 , 524178 , 525747 , 526270 , 527298 , 532362 , 533588 , 563473 , 566593 , 567361 , 572272 , 575224 , 581809 , 591073 , 591216 , 591292 , 599512 , 601216 , 601337 , 611507 , 617621 , 619739 , 651920 , 659025 , 680267 , 709533 , 715394 , 722277 , 772399 , 807356 );
Copy
5
98.98 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
407551
427946
440966
444030
451749
455531
457948
461406
467446
467494
467542
468950
474264
475100
475180
475473
480373
480526
482358
486977
491781
496528
496597
496598
496603
496606
496607
496608
496611
496613
499482
499878
500526
504651
505822
507686
511028
511031
511527
512212
519565
520611
523161
524178
525747
526270
527298
532362
533588
563473
566593
567361
572272
575224
581809
591073
591216
591292
599512
601216
601337
611507
617621
619739
651920
659025
680267
709533
715394
722277
772399
807356
]
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 (407551 , 427946 , 440966 , 444030 , 451749 , 455531 , 457948 , 461406 , 467446 , 467494 , 467542 , 468950 , 474264 , 475100 , 475180 , 475473 , 480373 , 480526 , 482358 , 486977 , 491781 , 496528 , 496597 , 496598 , 496603 , 496606 , 496607 , 496608 , 496611 , 496613 , 499482 , 499878 , 500526 , 504651 , 505822 , 507686 , 511028 , 511031 , 511527 , 512212 , 519565 , 520611 , 523161 , 524178 , 525747 , 526270 , 527298 , 532362 , 533588 , 563473 , 566593 , 567361 , 572272 , 575224 , 581809 , 591073 , 591216 , 591292 , 599512 , 601216 , 601337 , 611507 , 617621 , 619739 , 651920 , 659025 , 680267 , 709533 , 715394 , 722277 , 772399 , 807356 );
Copy