English 中文(简体)
甚至闪光器
原标题:Even lighter than SQLite

我正在寻找一个简单的C++Q图书馆实施,以便像SQite那样,但速度更快,规模较小。 我的项目正在发展游戏,在需要通过合作与发展协会的测试和想要某种极端业绩之间,无疑是一个截断点。 我愿意放弃Kalling风格的问询,允许它受到密码的驱动,但我在那里发现什么东西可以提供类似的灵活性,同时更喜欢ACID的测试。

我不想重新发明轮椅,而我自己开办一个图书馆的想法是令人生畏的,即使它只是你可以发出的所有呼吁中的一个简单小块。

我需要基本指令(SlectT, MODIFY, DELETE,INSERT, with JOIN, and WHERE),而不需要数据操作(如分类、排雷、最大、计数),也不需要数据库原样,甚至需要一致性(我可以在I m检测和清点时使用真正的Q服务)。

最佳回答

您是否相信你已经从“职业教育和培训”获得最大速度? 在盒子中,工技企司极为安全,但速度相当缓慢。 如果你知道你正在做些什么,并愿意在磁盘坠毁上冒.腐败风险,那么你可以做一些最优化的工作来改进光辉速度。

尤其是:

  • Switch off synchronization
  • Group writes into transactions
  • Index tables
  • Use database in memory

如果你没有探讨所有这些问题,那么你可能比你要慢许多倍。

问题回答

I m not sure you ll manage to find anything with better performances than SQL. Especially if you want operations like JOINs... Is SQLite speed really a problem? For simple requests it s usually faster than any full SGDB. Don t you have an index problem?

就其规模而言,在双轨档案中不发生1Meg额外事件,因此,我只字不提这个问题。

你们可以看伯克利分行,它可能是最快的行,但它主要只是关键和高价值数据库。

如果你真的需要更高的速度,考虑把整个数据库装上记忆中(再次使用Q)。

查阅gigabase及其双 fast。

请考虑。 Embedded innoDB。 它提供了基本功能(显然,见MySQL),但提供了实际的Qyntax(作为MySQL的一部分,而不是非行)。 838KB,它没有太重。

如果你刚才需要这些基本行动,那么你实际上就不需要。 查阅NSQL数据储存,例如Tokyo Cabinet





相关问题
Undefined reference

I m getting this linker error. I know a way around it, but it s bugging me because another part of the project s linking fine and it s designed almost identically. First, I have namespace LCD. Then I ...

C++ Equivalent of Tidy

Is there an equivalent to tidy for HTML code for C++? I have searched on the internet, but I find nothing but C++ wrappers for tidy, etc... I think the keyword tidy is what has me hung up. I am ...

Template Classes in C++ ... a required skill set?

I m new to C++ and am wondering how much time I should invest in learning how to implement template classes. Are they widely used in industry, or is this something I should move through quickly?

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

typedef ing STL wstring

Why is it when i do the following i get errors when relating to with wchar_t? namespace Foo { typedef std::wstring String; } Now i declare all my strings as Foo::String through out the program, ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

Window iconification status via Xlib

Is it possible to check with the means of pure X11/Xlib only whether the given window is iconified/minimized, and, if it is, how?

热门标签