Filter query #252
-
This is how my deta looks like I want to query all the entries that have a query = {"key": user_id, "analytics.duration?lt": str(datetime.now())} I even tried, this is also empty, query = {"key": user_id, "analytics.duration": 4501} what am I doing wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Beta Was this translation helpful? Give feedback.
-
i hate to say it but you are using base wrong. for queries to work and work efficiently you need to plan out your schemas etc. |
Beta Was this translation helpful? Give feedback.
i hate to say it but you are using base wrong. for queries to work and work efficiently you need to plan out your schemas etc.
i don't recommend putting all user events in the user object. the correct approach is to use a separate base for events and another one for users.