doureng1083 2019-07-04 05:37
浏览 84

如何在api中处理sql的大量数据

I need to know i created a simple api in php to fetch data from sql database. But the data is very huge. It will take so much time to get data in api(20minutes). Is their any way i need the data fastly.

I m creating api using it in angular application by http request.

Is their any other way to get data fast ?

  • 写回答

1条回答 默认 最新

  • dorbmd1177 2019-07-04 07:27
    关注

    If you did pagination and still your data are huge, there are other ways to make it faster.

    1- Gzip compression 2- Streaming 3- Multipart JSON 4- Chunk data transferring (a kind of streaming)

    评论

报告相同问题?

悬赏问题

  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)