Git Product home page Git Product logo

Comments (6)

timacdonald avatar timacdonald commented on July 30, 2024

@brunoinds, could you please let us know what version of SQLite you are running on the server?

from pulse.

timacdonald avatar timacdonald commented on July 30, 2024

Could you also try running the following two commands directly against the database and let us know if any of them succeed or fail?

Original...

select (select "key" from "pulse_entries" as "keys" where "keys"."key_hash" = "aggregated"."key_hash" limit 1) as "key", "cache_hit", "cache_miss" from (select "key_hash", sum("cache_hit") as "cache_hit", sum("cache_miss") as "cache_miss" from (select * from (select "key_hash", count(case when ("type" = cache_hit) then true else null end) as "cache_hit", count(case when ("type" = cache_miss) then true else null end) as "cache_miss" from "pulse_entries" where "type" in (cache_hit, cache_miss) and "timestamp" >= 1711483641 and "timestamp" <= 1711483679 group by "key_hash") union all select * from (select "key_hash", sum(case when ("type" = cache_hit) then "value" else null end) as "cache_hit", sum(case when ("type" = cache_miss) then "value" else null end) as "cache_miss" from "pulse_aggregates" where "period" = 60 and "type" in (cache_hit, cache_miss) and "aggregate" = count and "bucket" >= 1711483680 group by "key_hash")) as "results" group by "key_hash" order by "cache_hit" desc limit 101) as "aggregated"

Modified...

select (select "key" from "pulse_entries" as "keys" where "keys"."key_hash" = "aggregated"."key_hash" limit 1) as "key", "cache_hit", "cache_miss" from (select "key_hash", sum("cache_hit") as "cache_hit", sum("cache_miss") as "cache_miss" from (select * from (select "key_hash", count(case when ("type" = cache_hit) then 1 else null end) as "cache_hit", count(case when ("type" = cache_miss) then 1 else null end) as "cache_miss" from "pulse_entries" where "type" in (cache_hit, cache_miss) and "timestamp" >= 1711483641 and "timestamp" <= 1711483679 group by "key_hash") union all select * from (select "key_hash", sum(case when ("type" = cache_hit) then "value" else null end) as "cache_hit", sum(case when ("type" = cache_miss) then "value" else null end) as "cache_miss" from "pulse_aggregates" where "period" = 60 and "type" in (cache_hit, cache_miss) and "aggregate" = count and "bucket" >= 1711483680 group by "key_hash")) as "results" group by "key_hash" order by "cache_hit" desc limit 101) as "aggregated"

from pulse.

brunoinds avatar brunoinds commented on July 30, 2024

@brunoinds, could you please let us know what version of SQLite you are running on the server?

SQLite version: 3.7.17

from pulse.

brunoinds avatar brunoinds commented on July 30, 2024

Could you also try running the following two commands directly against the database and let us know if any of them succeed or fail?

Original...

select (select "key" from "pulse_entries" as "keys" where "keys"."key_hash" = "aggregated"."key_hash" limit 1) as "key", "cache_hit", "cache_miss" from (select "key_hash", sum("cache_hit") as "cache_hit", sum("cache_miss") as "cache_miss" from (select * from (select "key_hash", count(case when ("type" = cache_hit) then true else null end) as "cache_hit", count(case when ("type" = cache_miss) then true else null end) as "cache_miss" from "pulse_entries" where "type" in (cache_hit, cache_miss) and "timestamp" >= 1711483641 and "timestamp" <= 1711483679 group by "key_hash") union all select * from (select "key_hash", sum(case when ("type" = cache_hit) then "value" else null end) as "cache_hit", sum(case when ("type" = cache_miss) then "value" else null end) as "cache_miss" from "pulse_aggregates" where "period" = 60 and "type" in (cache_hit, cache_miss) and "aggregate" = count and "bucket" >= 1711483680 group by "key_hash")) as "results" group by "key_hash" order by "cache_hit" desc limit 101) as "aggregated"

Modified...

select (select "key" from "pulse_entries" as "keys" where "keys"."key_hash" = "aggregated"."key_hash" limit 1) as "key", "cache_hit", "cache_miss" from (select "key_hash", sum("cache_hit") as "cache_hit", sum("cache_miss") as "cache_miss" from (select * from (select "key_hash", count(case when ("type" = cache_hit) then 1 else null end) as "cache_hit", count(case when ("type" = cache_miss) then 1 else null end) as "cache_miss" from "pulse_entries" where "type" in (cache_hit, cache_miss) and "timestamp" >= 1711483641 and "timestamp" <= 1711483679 group by "key_hash") union all select * from (select "key_hash", sum(case when ("type" = cache_hit) then "value" else null end) as "cache_hit", sum(case when ("type" = cache_miss) then "value" else null end) as "cache_miss" from "pulse_aggregates" where "period" = 60 and "type" in (cache_hit, cache_miss) and "aggregate" = count and "bucket" >= 1711483680 group by "key_hash")) as "results" group by "key_hash" order by "cache_hit" desc limit 101) as "aggregated"

It returns:

SQLSTATE[HY000]: General error: 1 no such column: cache_hit (Connection: sqlite, SQL: select (select "key" from "pulse_entries" as "keys" where "keys"."key_hash" = "aggregated"."key_hash" limit 1) as "key", "cache_hit", "cache_miss" from (select "key_hash", sum("cache_hit") as "cache_hit", sum("cache_miss") as "cache_miss" from (select * from (select "key_hash", count(case when ("type" = cache_hit) then 1 else null end) as "cache_hit", count(case when ("type" = cache_miss) then 1 else null end) as "cache_miss" from "pulse_entries" where "type" in (cache_hit, cache_miss) and "timestamp" >= 1711483641 and "timestamp" <= 1711483679 group by "key_hash") union all select * from (select "key_hash", sum(case when ("type" = cache_hit) then "value" else null end) as "cache_hit", sum(case when ("type" = cache_miss) then "value" else null end) as "cache_miss" from "pulse_aggregates" where "period" = 60 and "type" in (cache_hit, cache_miss) and "aggregate" = count and "bucket" >= 1711483680 group by "key_hash")) as "results" group by "key_hash" order by "cache_hit" desc limit 101) as "aggregated")

from pulse.

crynobone avatar crynobone commented on July 30, 2024

SQLite version: 3.7.17

Do note that Laravel 10 requires 3.8.8 and Laravel 11 requires 3.35.0 as minimum.

https://laravel.com/docs/10.x/database

from pulse.

brunoinds avatar brunoinds commented on July 30, 2024

SQLite version: 3.7.17

Do note that Laravel 10 requires 3.8.8 and Laravel 11 requires 3.35.0 as minimum.

https://laravel.com/docs/10.x/database

Ok! I did not realized that. Thanks!

from pulse.

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.