python - How to integrate Redis with SQLAlchemy -


i'm learning use sqlalchemy connected sql database 12 standard relational tables (e.g. sqlite or postgresql). i'd use redis python couple of tables, particularly redis's fast set manipulation. realise redis nosql, can integrate sqlalchemy benefit of session , thread handling sqlalchemy has?

is there redis sa dialect? couldn't find it, means i'm missing basic point. there better architecture should @ use 2 different types of database?

while possible set orm puts data in redis, isn't particularly idea. orms designed expose standard sql features. many things standard in sql such querying on arbitrary columns not available in redis unless lot of work. @ same time redis has features such set manipulation not exist in standard sql not used orm.

your best option write code interact directly redis rather trying use inappropriate abstraction - find code data out of redis quite bit simpler sql code justifies using orm.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -