有木有大神会JSON? 帮帮忙 练练手呗,该怎么解决
有木有大神会JSON? 帮帮忙 练练手呗
是这样的 小的写了2个桌面应用的小程序, 我想把程序网络话 一个程序提交数据 另一个程序get数据
但是呢 我测试了一下 把一个 4W行的数据 大小有3M 的1.htm放到网站上面 用浏览器打不开,内容太庞大了
百度了一下说用 JSON可以快速打开
可是小的不才 完全不懂WEB。所以想请高人帮我弄一下 很简单的2个页面
一个存放数据的 1.php 1.php 用JSON读取 或者有别的快速打开一个内容很大页面的方法也可以
一个提交数据页面的add.php 提交页面 就一个 textbox 和一个button 就好 。
80分 送上 谢谢
------解决方案--------------------
你是需要一次性读取4W行数据吗?不能需要几行就读几行?不管怎么样4M数据一次读取都很大,你用JSON也好,XML也好,网络传输开销就很大了。
------解决方案--------------------
看你的需求来决定你采用什么方法,举例如果你需要在N条中查找1条或少数几条,那么可以通过提交你这几条数据到服务器端让服务器判断返回结果即可。如果你是N条数据查找M条,那么可以下载到客户端排查,如果你的服务端的数据是长时间不变的,那么肯定下载到客户端方便。至于下载数据时JSON还是XML还是其他比如直接TXT文本格式保存的,这个无所谓。就是下载时间长短问题。
------解决方案--------------------
如果受不了,就升级硬件
------解决方案--------------------
没有太看懂。。
你要用json,难道不需要把数据存成json格式的才能读取么
还是说你要把己有的数据加工成json进行存储并显示啊
------解决方案--------------------
你是需要一次性读取4W行数据吗?不能需要几行就读几行?不管怎么样4M数据一次读取都很大,你用JSON也好,XML也好,网络传输开销就很大了
------解决方案--------------------
数据量太大了吧
------解决方案--------------------
把数据处理下放进数据库查询会不会好点?

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

In this chapter, we will understand the Environment Variables, General Configuration, Database Configuration and Email Configuration in CakePHP.

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

To work with date and time in cakephp4, we are going to make use of the available FrozenTime class.

To work on file upload we are going to use the form helper. Here, is an example for file upload.

In this chapter, we are going to learn the following topics related to routing ?

CakePHP is an open-source framework for PHP. It is intended to make developing, deploying and maintaining applications much easier. CakePHP is based on a MVC-like architecture that is both powerful and easy to grasp. Models, Views, and Controllers gu

Validator can be created by adding the following two lines in the controller.

Working with database in CakePHP is very easy. We will understand the CRUD (Create, Read, Update, Delete) operations in this chapter.
