bms repo design choices
play

BMS-Repo Design Choices Wentao Shang (UCLA) Why another repo? - PowerPoint PPT Presentation

BMS-Repo Design Choices Wentao Shang (UCLA) Why another repo? UCLA Facility Department stores BMS data in relational databases and queries data with SQL SQL is very useful for data analysis Therefore we want to add SQL support into


  1. BMS-Repo Design Choices Wentao Shang (UCLA)

  2. Why another repo? • UCLA Facility Department stores BMS data in relational databases and queries data with SQL • SQL is very useful for data analysis • Therefore we want to add SQL support into our NDN-BMS system

  3. A trivial solution… • We can run NDN repo and RDBMS in parallel • Cons: data duplication, which leads to maintenance and synchronization cost Data Sync NDN RDBMS Repo

  4. Second design: RDBMS over NDN • Option 1: use NDN repo as underlying data store (like a file system) • Similar to “Hive/Spark over HDFS” RDBMS • Cons: lose the power of encoding Read/Write application semantics into NDN naming NDN Repo

  5. Second design: RDBMS over NDN • Option 2: decompose SQL queries into NDN Interests • “Ideal” solution, but hard to achieve • Still looking into it… • Fundamental challenge is the difference in the querying power

  6. Implicit schema in NDN- BMS data naming NDN-BMS naming scheme Relational schema BMS_ROOT bms( melnitz boelter strathmore building, studio1 4805 4806 room, electrical dev-type, DMR AH8 AA K J dev-id, demand volts amps data-type, 1122334455 timestamp)

  7. NDN Interest vs. SQL query • Observation: if we map NDN naming to relational schema, NDN Interest is equivalent to the σ operator in Relational Algebra (i.e., the WHERE clause in SQL) • SQL is way more powerful (RA-complete)… • … which means it is possible to express NDN Interest using SQL query

  8. Example • Interest: /<prefix>/melnitz/studio1/electrical/AA/ voltage, Exclude=(ANY, T1), ChildSelector=0 • SQL query: SELECT * FROM bms WHERE building = ‘melnitz’ AND room = ‘studio1’ AND devtype = ‘electrical’ AND devid = ‘AA’ AND devtype = ‘voltage’ AND (NOT timestamp <= ‘T1’) ORDER BY timestamp ASC LIMIT 1;

  9. Third design: NDN-over-RDBMS SQL query BMS-repo BMS data interface server source RDBMS

  10. Challenges • Efficiency: can be improved by pre-packaging (and pre-signing) each single data point • Scalability: • Use application-level data sharding • Or use better database…

  11. Thanks! • Suggestions on the SQL query decomposition algorithm are highly welcome! :-D

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend