简体   繁体   English

我应该为事务日志选择哪个数据库

[英]Which db should I choose for my transaction logging

I have a database question. 我有一个数据库问题。 I am developing an application where users sends some request and gets an answer from a vendor. 我正在开发一个应用程序,其中用户发送一些请求并从供应商那里得到答案。 I have a server receiving the request (through a rest call or a running web service, haven't decided which yet). 我有一个服务器接收请求(通过rest调用或正在运行的Web服务,尚未确定哪个请求)。

Whenever a new request comes in it should be logged in a database and when the vendor responds the record should be updated indicating whether it was accepted or not and stuff like that. 每当有新请求出现时,都应将其记录在数据库中,并且当供应商响应时,记录应进行更新,以指示该请求是否被接受以及类似的内容。 The only reason for this storage of transactions is for reporting and logging purposes. 事务存储的唯一原因是出于报告和日志记录的目的。 So now that I have stated my requirement I need help from someone with more expertise in this. 因此,既然我已经陈述了我的要求,那么我需要对此有更多专业知识的人的帮助。

What I've come up with so far is that it would be best to use a structured database since all records will have one type and the same information, so there's no need to waste space using a semi-structured database with each record containing both structure and information. 到目前为止,我想出的是最好使用结构化数据库,因为所有记录都将具有一种类型和相同的信息,因此无需使用半结构化数据库来浪费空间,每个记录都包含两个结构和信息。

But I don't know if there are any databases that are particularly good for this kind of "create/update operations only" ?? 但是我不知道是否有任何数据库对这种“仅创建/更新操作”特别有用? As I said I only need to read the data perhaps once a month or so. 就像我说的,我大概每个月只需要读取一次数据。 Any inputs are appreciated! 任何输入表示赞赏!

I'm developing a application with a lot of create/update queries and currently using Neo4j . 我正在开发具有大量创建/更新查询的应用程序,并且当前正在使用Neo4j It's fast and really good with j2E and php. 使用j2E和php可以非常快速而且非常好。 NoSQL is really fast to learn with it, and the web interface is really user friendly :) NoSQL真的非常容易学习,并且Web界面确实非常友好:)

You can use any open source database like postgreSql as you are mostly going to do inserts and not much other features needed. 您可以使用任何开源数据库(例如postgreSql),因为您将主要进行插入操作,而无需太多其他功能。 My suggestion will try to put logging process in separate threads rather than the one you are using for processing to have better performance for your api calls. 我的建议是尝试将日志记录进程放在单独的线程中,而不是将您用于处理的线程放在单独的线程中,以提高api调用的性能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM