<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Slow inserts"]]></title>
		<link>http://forum.space4j.org/posts/list/1.page</link>
		<description><![CDATA[Latest messages posted in the topic "Slow inserts"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Slow inserts</title>
				<description><![CDATA[ Hi,<br /> <br /> While querying data is fast, it seems adding new records is extremely slow. <br /> Having played around with the Phonebook example I was not able to insert more than 10 records per second.<br /> <br /> Is there a way around this? My application would need to store about 1M records.<br /> <br /> Thanks,<br /> <br /> Fred]]></description>
				<guid isPermaLink="true">http://forum.space4j.org/posts/preList/14/24.page</guid>
				<link>http://forum.space4j.org/posts/preList/14/24.page</link>
				<pubDate><![CDATA[Sat, 15 Nov 2008 01:31:34]]> GMT</pubDate>
				<author><![CDATA[ fred]]></author>
			</item>
			<item>
				<title>Re:Slow inserts</title>
				<description><![CDATA[ <br /> Hi Fred!<br /> <br /> I would not expect this slowliness. Now I am curious what is the bottleneck: I/O?<br /> <br /> You would have to take that Space4J source code and benchmark the writing process, step by step, to find out where the bottleneck is.<br /> <br /> -Sergio]]></description>
				<guid isPermaLink="true">http://forum.space4j.org/posts/preList/14/25.page</guid>
				<link>http://forum.space4j.org/posts/preList/14/25.page</link>
				<pubDate><![CDATA[Sat, 15 Nov 2008 06:47:34]]> GMT</pubDate>
				<author><![CDATA[ saoj]]></author>
			</item>
			<item>
				<title>Re:Slow inserts</title>
				<description><![CDATA[ <br /> I have been thinking about this and my bet is that the bottleneck is on disk I/O.<br /> <br /> Disk I/O after a write (or a commit in relational DB) is pretty much unescapable, because you need to make sure data is persisted and safe in case of a crash.<br /> <br /> I am wondering who is faster. A relational database doing multiple inserts and commits in sequence or Space4J.<br /> <br /> If you are really concerned about this speed, you can perform the disk I/O asynchronously, but the price is clear: you will not be sure when your write is persisted and safe in disk. After a crash, you will end up losing some past sucessful writes.<br /> <br /> So two questions remain:<br /> <br /> 1) Is Space4J as fast as any regular relational database when it comes to muliple and consective inserts/commits ?<br /> <br /> 2) Is there a scenario where doing async disk i/o is actually desirable considering its cost?<br /> <br /> Let me know your thoughts...<br /> <br /> <br /> ]]></description>
				<guid isPermaLink="true">http://forum.space4j.org/posts/preList/14/26.page</guid>
				<link>http://forum.space4j.org/posts/preList/14/26.page</link>
				<pubDate><![CDATA[Sat, 15 Nov 2008 09:07:21]]> GMT</pubDate>
				<author><![CDATA[ saoj]]></author>
			</item>
	</channel>
</rss>
