📄 need.so
字号:
m4_comment([$Id: need.so,v 10.2 2000/12/08 23:59:06 mao Exp $])m4_ref_title(Introduction, Do you need m4_db?,, intro/dbisnot, intro/what)m4_p([dnlm4_db is an ideal database system for applications that need fast,scalable, and reliable embedded database management. For applicationsthat need different services, however, it can be a poor choice.])m4_p([dnlFirst, do you need the ability to access your data in ways you cannotpredict in advance? If your users want to be able to enter SQLqueries to performcomplicated searches that you cannot program into your application tobegin with, then you should consider a relational engine instead. m4_dbrequires a programmer to write code in order to run a new kind of query.])m4_p([dnlOn the other hand, if you can predict your data access patterns up front-- and in particular if you need fairly simple key/value lookups -- thenm4_db is a good choice. The queries can be coded up once, and will thenrun very quickly because there is no SQL to parse and execute.])m4_p([dnlSecond, are there political arguments for or against a standalonerelational server? If you're building an application for your own useand have a relational system installed with administrative supportalready, it may be simpler to use that than to build and learn m4_db.On the other hand, if you'll be shipping many copies of your applicationto customers, and don't want your customers to have to buy, install,and manage a separate database system, then m4_db may be a betterchoice.])m4_p([dnlThird, are there any technical advantages to an embedded database? Ifyou're building an application that will run unattended for long periodsof time, or for end users who are not sophisticated administrators, thena separate server process may be too big a burden. It will requireseparate installation and management, and if it creates new ways forthe application to fail, or new complexities to master in the field,then m4_db may be a better choice.])m4_p([dnlThe fundamental question is, how closely do your requirements match them4_db design? m4_db was conceived and built to provide fast, reliable,transaction-protected record storage. The library itself was neverintended to provide interactive query support, graphical reportingtools, or similar services that some other database systems provide. Wehave tried always to err on the side of minimalism and simplicity. Bykeeping the library small and simple, we create fewer opportunities forbugs to creep in, and we guarantee that the database system stays fast,because there is very little code to execute. If your application needsthat set of features, then m4_db is almost certainly the best choicefor you.])m4_page_footer
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -