(My)SQL schema discussion #3
Replies: 2 comments 3 replies
-
The device queue in NanoMDM's mysql storage backend uses an SQL VIEW to query the next command for a device. To consider folding this VIEW back into a real query instead of a view. Reasons for a VIEW:
Reasons against a VIEW:
And I'm sure more reasons both for and against. VIEW use in code: nanomdm/storage/mysql/queue.go Line 89 in fce958e View in schema: nanomdm/storage/mysql/schema.sql Lines 217 to 239 in fce958e The idea here is to eliminate the VIEW usage in the queue code (essentially just embed the VIEW query into Thoughts? |
Beta Was this translation helpful? Give feedback.
-
See discussion about queue management (i.e. command deletion) over in #43. |
Beta Was this translation helpful? Give feedback.
-
I'd like to start some discussion about the decisions made with the MySQL (and potentially other RDBMS) schemas. Specifically about column types and table relationships.
I pointed out some things in the
schema.sql
under the storage backend in NanoMDM. But things like: to binary-column or not (leaning not). Which primary keys to use for command responses (currently just enrollment ID and result status). Check out the schema file for more info.Otherwise just a general discussion about SQL schema as related to MDM and NanoMDM.
Beta Was this translation helpful? Give feedback.
All reactions