8 Star 49 Fork 10

xiaogg/JsonDB

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
fenbiao.php 558 Bytes
一键复制 编辑 原始数据 按行查看 历史
<?php
header("content-Type: text/html; charset=utf-8");
include('JsonDB.class.php');
$db = new JsonDB();
$startTime = microtime(true);
$array=array();
for($i=1; $i<=100000; $i++){
$table=$db->getTable('area',$i);
$array[$table][]=array("id"=>$i,"name"=>"name".$i,"pinyin"=>$i,"pid"=>"0","status"=>"0","sort"=>"0","temp"=>"","letter"=>"\ufeffZ","level"=>"0","region"=>"0");
}
foreach($array as $k=>$v){
$db->open($k);
$area=$db->add($v);
}
$endTime = microtime(true);
echo '添加成功,耗时: ' .(($endTime - $startTime)*1000) . 'ms';
?>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/web/JsonDB.git
git@gitee.com:web/JsonDB.git
web
JsonDB
JsonDB
master

搜索帮助