Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partial execution of the SQL query #332

Open
gryumov opened this issue Sep 2, 2023 · 1 comment
Open

Partial execution of the SQL query #332

gryumov opened this issue Sep 2, 2023 · 1 comment

Comments

@gryumov
Copy link

gryumov commented Sep 2, 2023

When executing the query, indexes for the test_log table were not created

using SQLite

const SQLite_CREATE =  """
    create table if not exists test_log (
        var_time       integer not null
       ,var_updated_at integer not null
       ,var_publisher  text    not null
       ,var_name       text    not null
       ,var_value      float   null
       ,var_count      integer null
    );

    create index if not exists idx_test_log_var_name
        on test_log (var_name);

    create index if not exists idx_test_log_var_time_var_name
        on test_log (var_time, var_name);
"""

connection = SQLite.DB("test.sqlite")

DBInterface.execute(connection, SQLite_CREATE)
sqlite> EXPLAIN QUERY PLAN select * from test_log where var_name = 'test';
QUERY PLAN
`--SCAN test_log
@metab0t
Copy link
Collaborator

metab0t commented Sep 2, 2023

Duplicate of #303

@metab0t metab0t marked this as a duplicate of #303 Sep 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants