GithubHelp home page GithubHelp logo

Comments (2)

glookka avatar glookka commented on August 29, 2024

Related issue #1949 . Perhaps after fixing that, this one will become faster.

Although I did not benchmark it, it's possible that it may have actually become slower since I disabled multi-threaded execution of such queries when I fixed #1949, see issue comments.

from manticoresearch.

sanikolaev avatar sanikolaev commented on August 29, 2024

Indeed it has become a little bit slower:

mysql> select title, actor_ids from movies inner join movies_liked on movies_liked.movie_id = movies.id limit 0 facet actor_ids;
Empty set (18.94 sec)
--- 0 out of 8671 results in 9s 469ms ---

+-----------+----------+
| actor_ids | count(*) |
+-----------+----------+
|      2380 |      102 |
|     10152 |        4 |
|        16 |      188 |
|     32487 |       17 |
|     19212 |        1 |
|      4081 |       23 |
|        43 |        7 |
|      1681 |        6 |
|      2338 |        9 |
|       506 |       20 |
|      3971 |       19 |
|       588 |       12 |
|      3753 |        5 |
|     19316 |        1 |
|      1207 |       35 |
|      9884 |       68 |
|      9955 |        1 |
|     36532 |        2 |
|      1302 |        1 |
|      7830 |       27 |
+-----------+----------+
20 rows in set (18.94 sec)
--- 20 out of 2267 results in 9s 469ms ---

in

mysql> show version;
+-----------+--------------------------------+
| Component | Version                        |
+-----------+--------------------------------+
| Daemon    | 6.2.13 aabec386f@24031910 dev  |

vs ~17 sec previously.

More performance issues

W/o facet it works much faster, but it's interesting that it works slower with limit 0 thatn w/o it:

mysql> select title, actor_ids from movies inner join movies_liked on movies_liked.movie_id = movies.id limit 0;
Empty set (1.44 sec)
--- 0 out of 8671 results in 1s 442ms ---

mysql> select title, actor_ids from movies inner join movies_liked on movies_liked.movie_id = movies.id limit 0;
Empty set (1.43 sec)
--- 0 out of 8671 results in 1s 435ms ---

mysql> select title, actor_ids from movies inner join movies_liked on movies_liked.movie_id = movies.id limit 0;
Empty set (1.40 sec)
--- 0 out of 8671 results in 1s 394ms ---

mysql> select title, actor_ids from movies inner join movies_liked on movies_liked.movie_id = movies.id limit 1;
+---------------------------------------------+------------------+
| title                                       | actor_ids        |
+---------------------------------------------+------------------+
| Sublime degero assumenda accendo velum pax. | 2380,10152,32487 |
+---------------------------------------------+------------------+
1 row in set (0.95 sec)
--- 1 out of >=20 results in 949ms ---

mysql> select title, actor_ids from movies inner join movies_liked on movies_liked.movie_id = movies.id limit 1;
+---------------------------------------------+------------------+
| title                                       | actor_ids        |
+---------------------------------------------+------------------+
| Sublime degero assumenda accendo velum pax. | 2380,10152,32487 |
+---------------------------------------------+------------------+
1 row in set (0.96 sec)
--- 1 out of >=20 results in 955ms ---

mysql> select title, actor_ids from movies inner join movies_liked on movies_liked.movie_id = movies.id limit 1;
+---------------------------------------------+------------------+
| title                                       | actor_ids        |
+---------------------------------------------+------------------+
| Sublime degero assumenda accendo velum pax. | 2380,10152,32487 |
+---------------------------------------------+------------------+
1 row in set (0.99 sec)
--- 1 out of >=20 results in 989ms ---

from manticoresearch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.