Comments (6)
JSONB is quite fast.
For key/value scenario, a simple GIN index is enough.
Based on this link, this index is enough:
CREATE INDEX myindex ON mytable USING GIN (mycolumn jsonb_path_ops)
or to stand in a more safe side, we can use:
CREATE INDEX myindex ON mytable USING GIN (mycolumn)
And we can query like this:
SELECT * FROM mytable WHERE mycolumn @> '{"key": "value"}'
from nettu-scheduler.
Nice, then I think that is what we should go for!
I can change it within this week if you have not already started on this :)
from nettu-scheduler.
Then I'll do it :) I'm in the middle of it :P
from nettu-scheduler.
I invited you as a collaborator on the project now, then you should have more access :)
from nettu-scheduler.
Yeah, I though I had documented somewhere that metadata keys cannot contain _
, but apparently not. Another alternative is to have a more unusual separator, and reject metadata keys that contain that separator.
Your solution should probably work as well, what kind of index should then be used for querying on JSONB?
from nettu-scheduler.
seems like I cannot assign issues to myself, you can assign this one to me
from nettu-scheduler.
Related Issues (15)
- Scalibility and Reminders
- README seems broken HOT 1
- thread 'main' panicked at 'To create default account' HOT 4
- Production-ready versioning + docker + migrations HOT 3
- Log errors on query failure HOT 1
- Possibility to get_user_freebusy via the Rust SDK HOT 1
- Replace week_start integer with an enum HOT 3
- Inconsistency in SDK methods HOT 2
- How to set baseUrl for `@nettu/sdk-scheduler`
- migration is broken because of sqlx compile time query checking HOT 2
- Namespace environment variables and collection names HOT 1
- User Buckets HOT 2
- Support PostgreSQL HOT 7
- Tokio 1.0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nettu-scheduler.