Comments (4)
from apijson.
APIJSON 性能是有测试过的,包括在腾讯的项目中实际表现也很好:
https://github.com/Tencent/APIJSON/releases/tag/5.1.5
Redis 如果没部署(连接耗时,超时才有结果),或者不在本机部署(网络耗时),光连 Redis 查询就会很耗时。
你现在这种写法
1.首先引用赋值(外键关联)写法就错了
"id>": "/Srctions/router_id"
对应
WHERE id
> '/Srctions/router_id'
结果可能是扫全表然后查不到值
应该改成
"id@": "/Srctions/router_id"
可以加 @Explain: true 或者在控制台日志查看生成和执行的 SQL。
2.其次如果写对了,那也是 N+1 次查询,大数据量下性能确实差,需要改成 JOIN,可以试试 APP JOIN 和 LEFT/INNER JOIN
#374
3.最后 Log.DEBUG = true(默认 false) 时,打印日志对性能会有明显影响,可以关掉后再测试
from apijson.
1.如果写法改为"id@": "/Srctions/router_id" sql会执行多次,会和数据量无限叠加,速度更慢
from apijson.
用 JOIN
from apijson.
Related Issues (20)
- apijson是否支持及联删除 HOT 4
- [Bug] MySQL版本8.0以上,正则~,会出现问题!大佬们怎么解决的 HOT 1
- 【咏创】后端开发 使用 APIJSON 案例:一个公寓租赁平台包括管家端、用户端、物业端、pc管理端
- 【上海瀚普】web前端 使用 APIJSON 案例:top小程序是一个大型的crm系统。主要目的是提升客户之间的关系,对客户进行评价打分,与客户互动和对数据的跟踪。
- 【清研灵智】高级前端 使用 APIJSON 案例:热线管理平台(后台+大屏)
- 【易开业】前端开发 使用 APIJSON 案例:服务系统项目:pc端的,主要是为公司的客户提供个税,会计,工商注册这方面的需求模块
- 【上海出奇】JAVA工程师: 熟练掌握 APIJSON 等框架技术
- 【上市公司】【亚信科技】初级前端 使用 APIJSON 案例:线上购物微信小程序
- 【Job 招聘】智算科技 全栈工程师 15-25K:熟悉APIJSON 的使用 HOT 1
- 【项目需求】企业信息化管理Java开发平台设计 预估总价:30000元,核心使用APIJSON
- 【华为云】开发者联盟在知乎推荐了 APIJSON
- [Huawei][Cloud]Developer Union recommended APIJSON at Zhihu
- 【分组数据结构问题】
- 【分组数据结构问题】 HOT 1
- 【问题请教】
- [提问] 请问支持自定义角色 、 RBAC 吗?
- 在使用apijson-router 接口权限方案咨询 HOT 10
- [Bug] 批量新增和修改报错417 HOT 2
- [Bug] long类型返回给前端精度丢失问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apijson.