Coder Social home page Coder Social logo

Comments (11)

phughk avatar phughk commented on June 2, 2024

Hi @mimib00, can you confirm that the rocksdb file storage has the same file size still?

from surrealdb.

mimib00 avatar mimib00 commented on June 2, 2024

Hi @mimib00, can you confirm that the rocksdb file storage has the same file size still?

Yeah that's the weird thing the data was still on the disk but surrealdb 1.4.2 and surrealist 2.0.5 can't see it for some reason

I have edited the main bug question with more details you can check it

from surrealdb.

kearfy avatar kearfy commented on June 2, 2024

Hey @mimib00, did you upgrade from v1.0.0? Or perhaps one of it's beta's

from surrealdb.

mimib00 avatar mimib00 commented on June 2, 2024

Hey @mimib00, did you upgrade from v1.0.0? Or perhaps one of it's beta's

The database was in 1.0.0 and updated to v1.4.2 using docker-compose

from surrealdb.

phughk avatar phughk commented on June 2, 2024

@mimib00 can you confirm the docker volumes you have please?

from surrealdb.

mimib00 avatar mimib00 commented on June 2, 2024

he docker volumes you have please?

what do you mean by that?

if you mean that the volume exists and has permissions it does cause as soon as I reverted the database version in the docker-compose file to 1.0 every worked just fine and the data is there

from surrealdb.

phughk avatar phughk commented on June 2, 2024

Could you please export the 1.0 database and import it into the latest (either 1.4 or 1.5).

I was wondering if it was the case that a separate image would have had separate storage, explaining the above.

Either way, exporting and importing should solve the problem, whatever the underlying infra issue is. The data will only disappear if it isn't found.

from surrealdb.

mimib00 avatar mimib00 commented on June 2, 2024

I'm busy with other projects at the moment, but I'll give it a try as soon as I'm free and update you here

from surrealdb.

nathanschwarz avatar nathanschwarz commented on June 2, 2024

@mimib00 there's a bug I also encountered on Surrealist when upgrading surrealDB versions. In my case the data is not lost, Surrealist just can't show the results in the UI, if you manually query your data you should be able to see it.

from surrealdb.

mimib00 avatar mimib00 commented on June 2, 2024

@phughk

AN update on this issue so, I have just finished the migration of this project from version 1.0 to 1.5.1 and now it is working just fine but there is another bug with the data types here is an example of a query:

SELECT is_new, email FROM users WHERE email=$email

now in v1.0 it was working just fine but after I upgraded to v1.5.1 the query didn't return anything after some debugging I found that surrealdb is not registering the email as a string and if I ran the same query but like this:

SELECT is_new, email FROM users WHERE email=type::string($email)

It works just fine, I did more digging and tried this query:

LET $user = SELECT * FROM users:iaMwpm1QCBdtmFKGLaOZGCLENNe2;
type::is::string($user.email); // returns false even tho it's a string in the table schema.

but the weird thing is that this happens only on the database that has been migrated from 1.0 to 1.5.1 cause I have a dev db that was created newly with 1.5.1 the above query is working just fine with it.

from surrealdb.

mimib00 avatar mimib00 commented on June 2, 2024

@phughk

AN update on this issue so, I have just finished the migration of this project from version 1.0 to 1.5.1 and now it is working just fine but there is another bug with the data types here is an example of a query:

SELECT is_new, email FROM users WHERE email=$email

now in v1.0 it was working just fine but after I upgraded to v1.5.1 the query didn't return anything after some debugging I found that surrealdb is not registering the email as a string and if I ran the same query but like this:

SELECT is_new, email FROM users WHERE email=type::string($email)

It works just fine, I did more digging and tried this query:

LET $user = SELECT * FROM users:iaMwpm1QCBdtmFKGLaOZGCLENNe2;
type::is::string($user.email); // returns false even tho it's a string in the table schema.

but the weird thing is that this happens only on the database that has been migrated from 1.0 to 1.5.1 cause I have a dev db that was created newly with 1.5.1 the above query is working just fine with it.

BTW this also created this same issue with strings with the full-text search where now I need to use type::string() with every variable in the query

from surrealdb.

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.