storm
storm copied to clipboard
Simple and powerful toolkit for BoltDB
Example struct: ``` type Example struct { ID int `json:"id,omitempty"` SomeInt int64 `storm:"index" json:"someint,omitempty"` } ``` When using `Range` search by indexed filed `SomeInt` result is empty. If `storm:"index"` is...
1. I there a method for this, instead of looping and calling .Save on each element? 2. If loop is the way to go - what is the best approach...
My database is big enough to make scans painful. In current setup with 1G data, my queries took 26 sec with storm/q + select. Queries is complex enough to make...
``` go type User struct { ID int `storm:"increment"` Age int Group Group `storm:"ref(Group)"` // declare a reference to the Group bucket } type Group { ID int `storm:"increment"` Name...
```` DB.Select(q.Eq("DeviceId", Id), q.Gte("CreateTime", startTime), q.Lte("CreateTime", endTime)).Find(&list) ```` Matcher success ```` DB.Select(q.Eq("DeviceId", Id), q.Gte("CreateTime", startTime), q.Lte("CreateTime", endTime)).Bucket("DeviceRecord").Raw() ```` Matcher not work.
See https://github.com/oklog/ulid This ID has some interesting characteristics that would be a good fit for Storm, me thinks, one of them being the "lexicographically sortable". It should live in a...
Not sure if this is feasible, but it would be awesome if storm could support geo queries. For example, elasticsearch has some geo functions which could be used for inspiration:...
See https://www.reddit.com/r/golang/comments/4ix4gj/oh_gob/
Adding map support to Storm could allow users to store dynamic values and to be able to query them as if they were saved with a structure. The main differences...
Deleting a record by field currently requires to fetch the record then deleting it, and to avoid race it must be done within the same transaction. That's a lot of...