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.
我有一个数据库调用,它给了我 40 列和 75000 行,我正在使用 WCF 服务将数据获取到客户端,我的方法将此对象返回给客户端,然后在获取数据并放入一个对象以发送到前端至少需要 5 秒。我该如何优化这个。
听起来您正在将整个数据库下载到客户端。
最好的优化是只将信息下载到您真正需要下载的客户端,直到需要时才下载。