3
10.38 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
818766
825954
823737
397869
825882
714523
525315
397174
667208
741713
233147
517826
388766
799037
359420
401968
649377
630394
781862
407700
396258
445714
450147
514304
549644
554897
669768
591376
591317
637713
808416
742415
750603
428300
315513
407709
824258
457572
450796
512687
580221
593068
468369
428148
504951
435941
409226
422243
443832
389499
456030
498420
515956
560400
580750
591304
400517
497207
519512
455259
541239
599631
618674
474134
472142
519346
486870
625222
564824
633741
]
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 (818766 , 825954 , 823737 , 397869 , 825882 , 714523 , 525315 , 397174 , 667208 , 741713 , 233147 , 517826 , 388766 , 799037 , 359420 , 401968 , 649377 , 630394 , 781862 , 407700 , 396258 , 445714 , 450147 , 514304 , 549644 , 554897 , 669768 , 591376 , 591317 , 637713 , 808416 , 742415 , 750603 , 428300 , 315513 , 407709 , 824258 , 457572 , 450796 , 512687 , 580221 , 593068 , 468369 , 428148 , 504951 , 435941 , 409226 , 422243 , 443832 , 389499 , 456030 , 498420 , 515956 , 560400 , 580750 , 591304 , 400517 , 497207 , 519512 , 455259 , 541239 , 599631 , 618674 , 474134 , 472142 , 519346 , 486870 , 625222 , 564824 , 633741 );
Copy
4
2.19 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
233147
315513
359420
388766
389499
396258
397174
397869
400517
401968
407700
407709
409226
422243
428148
428300
435941
443832
445714
450147
450796
455259
456030
457572
468369
472142
474134
486870
497207
498420
504951
512687
514304
515956
517826
519346
519512
525315
541239
549644
554897
560400
564824
580221
580750
591304
591317
591376
593068
599631
618674
625222
630394
633741
637713
649377
667208
669768
714523
741713
742415
750603
781862
799037
808416
818766
823737
824258
825882
825954
]
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 (233147 , 315513 , 359420 , 388766 , 389499 , 396258 , 397174 , 397869 , 400517 , 401968 , 407700 , 407709 , 409226 , 422243 , 428148 , 428300 , 435941 , 443832 , 445714 , 450147 , 450796 , 455259 , 456030 , 457572 , 468369 , 472142 , 474134 , 486870 , 497207 , 498420 , 504951 , 512687 , 514304 , 515956 , 517826 , 519346 , 519512 , 525315 , 541239 , 549644 , 554897 , 560400 , 564824 , 580221 , 580750 , 591304 , 591317 , 591376 , 593068 , 599631 , 618674 , 625222 , 630394 , 633741 , 637713 , 649377 , 667208 , 669768 , 714523 , 741713 , 742415 , 750603 , 781862 , 799037 , 808416 , 818766 , 823737 , 824258 , 825882 , 825954 );
Copy
5
70.69 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
233147
315513
359420
388766
389499
396258
397174
397869
400517
401968
407700
407709
409226
422243
428148
428300
435941
443832
445714
450147
450796
455259
456030
457572
468369
472142
474134
486870
497207
498420
504951
512687
514304
515956
517826
519346
519512
525315
541239
549644
554897
560400
564824
580221
580750
591304
591317
591376
593068
599631
618674
625222
630394
633741
637713
649377
667208
669768
714523
741713
742415
750603
781862
799037
808416
818766
823737
824258
825882
825954
]
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 (233147 , 315513 , 359420 , 388766 , 389499 , 396258 , 397174 , 397869 , 400517 , 401968 , 407700 , 407709 , 409226 , 422243 , 428148 , 428300 , 435941 , 443832 , 445714 , 450147 , 450796 , 455259 , 456030 , 457572 , 468369 , 472142 , 474134 , 486870 , 497207 , 498420 , 504951 , 512687 , 514304 , 515956 , 517826 , 519346 , 519512 , 525315 , 541239 , 549644 , 554897 , 560400 , 564824 , 580221 , 580750 , 591304 , 591317 , 591376 , 593068 , 599631 , 618674 , 625222 , 630394 , 633741 , 637713 , 649377 , 667208 , 669768 , 714523 , 741713 , 742415 , 750603 , 781862 , 799037 , 808416 , 818766 , 823737 , 824258 , 825882 , 825954 );
Copy