{"id":21500435,"url":"https://github.com/linwin-cloud/metalite-server","last_synced_at":"2025-04-23T17:24:33.173Z","repository":{"id":183442546,"uuid":"670132190","full_name":"LinWin-Cloud/metalite-server","owner":"LinWin-Cloud","description":"轻量级高性能数据库。MetaLite Server数据库是基于Java开发的数据库软件，具有轻量，快捷部署，效率高，配置低，文件系统合理，抗网络负载强大的特点。并且不仅仅可以储存数据，而且可以储存图片、网页等内容，可以替代一部分网页服务器的功能","archived":false,"fork":false,"pushed_at":"2023-07-26T11:09:38.000Z","size":212,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T01:51:40.748Z","etag":null,"topics":["database","db","hashmap","java","jdk","js","linux","python","server","shell","sql","web","windows"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LinWin-Cloud.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-24T11:13:26.000Z","updated_at":"2024-11-18T15:19:21.000Z","dependencies_parsed_at":"2024-11-23T17:40:53.630Z","dependency_job_id":"527bf750-f526-487f-a8ff-1fb5a5c017d7","html_url":"https://github.com/LinWin-Cloud/metalite-server","commit_stats":null,"previous_names":["linwin-cloud/metalite-server"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinWin-Cloud%2Fmetalite-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinWin-Cloud%2Fmetalite-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinWin-Cloud%2Fmetalite-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LinWin-Cloud%2Fmetalite-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LinWin-Cloud","download_url":"https://codeload.github.com/LinWin-Cloud/metalite-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250478775,"owners_count":21437234,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","db","hashmap","java","jdk","js","linux","python","server","shell","sql","web","windows"],"created_at":"2024-11-23T17:40:42.847Z","updated_at":"2025-04-23T17:24:33.147Z","avatar_url":"https://github.com/LinWin-Cloud.png","language":"Java","readme":"# MetaLite Server 数据库\n\nMetaLite Server数据库是基于Java开发的数据库软件，具有轻量，快捷部署，效率高，配置低，文件系统合理，抗网络负载强大的特点。由LinwinCloud个人独立开发完成\n\n```\n名称:\t\t\tMetaLite Server Database\n语言:\t\t\tJava\n所用服务形式:\t\t异步IO\n所用协议:\t\tHTTP/2\n开发者:\t\t\tLinwinCloud\n协议:\t\t\tGPL-3\n支持平台:\t\tLinux , Windows\n最低配置:\t\t1核1GB内存云服务器\n设计运行环境:\t\t1核2GB内置云服务器\n设计运行Jdk:\t\toracle-jdk1.8\n```\n\n### 安装\n不提供专门的安装脚本了，这个演示的是在Linux上\n```\n# 预先安装Jdk，这个不演示了\n```\n\n\u003e git clone https://github.com/LinWin-Cloud/metalite-server\n\n\u003e cp -r metalite-server /usr/\n\n\u003e sudo echo '/usr/metalite-server/bin/metalite' \u003e /bin/metalite\n\n\u003e sudo chmod +x /bin/metalite\n\n\u003e # 安装完成\n\n\u003e metalite # 启动metalite server数据库\n\n### 配置\n配置文件在 {源代码目录}/config/service.jmap\n#### 默认配置\n```\nport=1145\nname=metalite/1.7\nhost=127.0.0.1\n```\n\u003e port\t\t启动端口\n\n\u003e name\t\t配置名称\n\n\u003e host\t\t绑定IP\n\n### 性能指标\n1. 纯HTTP服务指标\n测试采用 4GB内存2核 Ubuntu 服务器测试，SSD硬盘\n```\nConcurrency Level:      1000\nTime taken for tests:   9.792 seconds\nComplete requests:      99350\nFailed requests:        0\nNon-2xx responses:      99350\nTotal transferred:      12319400 bytes\nHTML transferred:       1987000 bytes\nRequests per second:    10146.27 [#/sec] (mean)\nTime per request:       98.558 [ms] (mean)\nTime per request:       0.099 [ms] (mean, across all concurrent requests)\nTransfer rate:          1228.65 [Kbytes/sec] received\n```\n\n2. 查询速度\n测试条件在SSD硬盘下，6600个数据库下，查找6000个符合查询的数据库名称\n```\nTime: 0.1s\nSoftware CPU: 5%\n```\n\n### 实现原理\n\u003e 抛弃以前开发的Linwin DB Server数据库的设计，把数据全部加载到内存改为直接硬盘读取，避免了加载数据的时间和内存占用\n\n\u003e 简单粗暴，吸取了Linwin DB Server数据库设计不足，改良了Myscript数据库脚本，使其更加SQL化\n\n\u003e Key-Value数据库，不过于此不同的是，不再是简单的Key和Value相对应，效仿SQL\n```\n用户|\n    | 数据库1 |-| 数据1-| Key1 - Value1\n    |         |-|       | Key2 - Value2\t\n    | 数据库2 |-| 数据2\n\n```\n\n\u003e Java HashMap对象写入或者读取文件，对HashMap对象进行读取和写入，读取效率快而且准确率高\n\n### 文档\n\u003e 提供中文文档\n\u003e https://gitee.com/LinWin-Cloud/metalite-server/wikis\n\n### 合作伙伴\n\u003e LinWin-Cloud\n\u003e zmh-program\n\n### 关注\n\u003e B站: https://space.bilibili.com/1012391123\n\n\u003e OSCHINA: https://my.oschina.net/LinWinCloud\n\n\u003e Github: https://github.com/LinWin-Cloud/\n\n\u003e Gitee: https://github.com/LinWin-Cloud/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinwin-cloud%2Fmetalite-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flinwin-cloud%2Fmetalite-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flinwin-cloud%2Fmetalite-server/lists"}