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.
我有一个不断变大的庞大数据库。查询时间越来越长(我希望它们不到一秒钟,它们是两点,它们将花费更长的时间)。为了可扩展性,我想根据列的内容将表拆分为单独的较小的表state。然后数据库将有 50 个中等大小的表,而不是一个巨大的、缓慢的表。有没有办法用纯 SQL 查询来做到这一点(假设表是预制的)?
state