Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在 Memsql 中将面向列的表存储在内存中?标准是内存中面向行的表,磁盘上面向列。
MemSQL 列存储表始终由磁盘支持,但是列存储数据当然会缓存在内存中,因此如果您的所有数据恰好适合内存,您将获得内存性能。(磁盘只需要涉及写入必须持久化到磁盘以实现持久性,并且在重新启动后必须从磁盘加载数据才能读取,就像任何持久的内存存储一样。)
在行存储中,我们使用数据结构和算法(例如无锁跳过列表),利用数据在内存中这一事实来提高点读取和写入的性能,尤其是在高并发的情况下,但列存储查询执行适用于快速扫描在数据块和批量写入上,无论数据是驻留在内存中还是磁盘上,它都能很好地工作。