pseudo-db, dynamic fields,dynamic types, builtin.object, uuids, metaprogramming, dictionary like #654
Replies: 3 comments 3 replies
-
I think it is interesting. It is kind of a naive dictionary implementation despite of the name is Db. I would like to know how far it can go. I have this python script which has performance issue: The I try to create ten thousands of Nodes and give them an unique id. So I use sqlite to solve the performance issue. (Please see models.py) Please try my repo and let's see if mojo has potential to make dataclass more performant to be applicable. |
Beta Was this translation helpful? Give feedback.
-
Ok for the test iam working on it, theres alway improvements that could be done like for searching by uuid: What would be slower is the deletion of object themselves, it id had iterate the huge list to rebuild a list without it in it. Field deletion should be plenty fast since we have the object at hand already so it'd depend on how much fields there is because of the same reasons as above. |
Beta Was this translation helpful? Give feedback.
-
The dataclass implementation runs more than three days, but still not complete. If mojo's implementation can beat sqlite's performance, it will be a 50000x plus speedup. It can be a shiny blog post as this modular blog! Are you sure you can make it? |
Beta Was this translation helpful? Give feedback.
-
First thank to the team to release only 6 days after q/a
here is the repo
https://github.com/rd4com/mojo-relational-objects-exploration
it is also using some structs as wrappers
what do you think ?
Beta Was this translation helpful? Give feedback.
All reactions