weixin_33697898 2012-07-01 08:25 采纳率: 0%
浏览 187

使用webGL加载大数据

I need to load a lot of data fetched from a mysql db in my webGL page. The approach I found is this: http://www.w3schools.com/php/php_ajax_database.asp

although the idea of a first fetching with PHP and then passing it to the webGL page isn't exciting, any alternative?

  • 写回答

1条回答 默认 最新

  • weixin_33734785 2012-07-01 08:44
    关注

    It is not very clear what you are trying to do, but if what you want is to display data to the user and you have too much data, than you should use paging/pagination.

    This is the process roughly:

    1. You need to read a portion of the data (lets say 100 records) and display it to the user in page one.
    2. you have buttons that enable the user to move to other page.
    3. on click, you send an ajax request with the pressed number and you know that you need pressed number * 100 to ((pressed number *100) + 100)

    for example:

    1. first page displays rows 0-100, user clicks next you get rows 100-200 and display them.
    2. first page displays rows 0-100, user clicks number 4, you get rows 400 - 500 (4*100 to ((4*100) + 100)).
    评论

报告相同问题?

悬赏问题

  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥15 stable diffusion
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条