{"exhaustive":{"nbHits":false,"typo":false},"exhaustiveNbHits":false,"exhaustiveTypo":false,"hits":[{"_highlightResult":{"author":{"matchLevel":"none","matchedWords":[],"value":"danso"},"comment_text":{"fullyHighlighted":false,"matchLevel":"full","matchedWords":["datausa","wiki"],"value":"Seems like the majority of the data comes from the Census...which is not a bad thing as Census data is under-used though the official U.S. Census site and FactFinder is highly...unintuitive to use. <em>DataUSA</em> has a Github repo and <em>wiki</em> which lists its data sources (available through its API): <a href=\"https://github.com/DataUSA/datausa-api/wiki\" rel=\"nofollow\">https://github.com/<em>DataUSA</em>/<em>datausa</em>-api/<em>wiki</em></a><p>FWIW, the Census has also started building out its own API: <a href=\"http://www.census.gov/data/developers/data-sets.html\" rel=\"nofollow\">http://www.census.gov/data/developers/data-sets.html</a>"},"story_title":{"matchLevel":"none","matchedWords":[],"value":"Data USA: Comprehensive Visualization of U.S. Public Data"},"story_url":{"fullyHighlighted":false,"matchLevel":"partial","matchedWords":["datausa"],"value":"http://<em>datausa</em>.io/"}},"_tags":["comment","author_danso","story_11429803"],"author":"danso","comment_text":"Seems like the majority of the data comes from the Census...which is not a bad thing as Census data is under-used though the official U.S. Census site and FactFinder is highly...unintuitive to use. DataUSA has a Github repo and wiki which lists its data sources (available through its API): <a href=\"https:&#x2F;&#x2F;github.com&#x2F;DataUSA&#x2F;datausa-api&#x2F;wiki\" rel=\"nofollow\">https:&#x2F;&#x2F;github.com&#x2F;DataUSA&#x2F;datausa-api&#x2F;wiki</a><p>FWIW, the Census has also started building out its own API: <a href=\"http:&#x2F;&#x2F;www.census.gov&#x2F;data&#x2F;developers&#x2F;data-sets.html\" rel=\"nofollow\">http:&#x2F;&#x2F;www.census.gov&#x2F;data&#x2F;developers&#x2F;data-sets.html</a>","created_at":"2016-04-05T17:00:55Z","created_at_i":1459875655,"objectID":"11432138","parent_id":11429803,"story_id":11429803,"story_title":"Data USA: Comprehensive Visualization of U.S. Public Data","story_url":"http://datausa.io/","updated_at":"2024-09-19T23:01:51Z"},{"_highlightResult":{"author":{"matchLevel":"none","matchedWords":[],"value":"Retric"},"comment_text":{"fullyHighlighted":false,"matchLevel":"full","matchedWords":["datausa","wiki"],"value":"&gt; 20TW is roughly current world marketed energy consumption<p>Primary energy for solar panels is the sunlight hitting them not the electricity they produce.  Fossil fuels care about primary energy because you pay for the fuel.  Further, roughly 40% of global shipping by weight is moving fossil fuels.<p>&gt; solar power plants have a capacity factor around 20%<p>This varies widely by technology and location. ~30% isn\u2019t uncommon in the US. Capacity factor 29.7% (average 2015\u20132017, MS1) <a href=\"https://en.wikipedia.org/wiki/Mount_Signal_Solar\" rel=\"nofollow\">https://en.<em>wiki</em>pedia.org/<em>wiki</em>/Mount_Signal_Solar</a> tracking vs fixed makes a huge difference. Rooftop solar sucks vs grid scale in terms of production but you save on grid transmission losses the numbers aren\u2019t directly equivalent.<p>Further PV panels degrade every year, but you see 30 year old panels still in use.<p>&gt; human energy consumption to continue to grow\n&gt; 20 years from now we might need four times that much<p>Population growth + Electric cars + AI changed US electricity consumption from 4.03TWh in 2018 to 4.19 TWH in 2025. That\u2019s less than 0.6% per year, suggesting 4x increase in primary energy consumption from AI in 20 years as a meaningful possibility is insane. <a href=\"https://statbase.org/data/usa-electricity-consumption/\" rel=\"nofollow\">https://statbase.org/<em>data/usa</em>-electricity-consumption/</a>"},"story_title":{"matchLevel":"none","matchedWords":[],"value":"Fossil CO2 emissions decrease in 2026"},"story_url":{"matchLevel":"none","matchedWords":[],"value":"https://news.exeter.ac.uk/faculty-of-environment-science-and-economy/fossil-co2-emissions-decrease-in-2026/"}},"_tags":["comment","author_Retric","story_50437752"],"author":"Retric","children":[50448647],"comment_text":"&gt; 20TW is roughly current world marketed energy consumption<p>Primary energy for solar panels is the sunlight hitting them not the electricity they produce.  Fossil fuels care about primary energy because you pay for the fuel.  Further, roughly 40% of global shipping by weight is moving fossil fuels.<p>&gt; solar power plants have a capacity factor around 20%<p>This varies widely by technology and location. ~30% isn\u2019t uncommon in the US. Capacity factor 29.7% (average 2015\u20132017, MS1) <a href=\"https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Mount_Signal_Solar\" rel=\"nofollow\">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Mount_Signal_Solar</a> tracking vs fixed makes a huge difference. Rooftop solar sucks vs grid scale in terms of production but you save on grid transmission losses the numbers aren\u2019t directly equivalent.<p>Further PV panels degrade every year, but you see 30 year old panels still in use.<p>&gt; human energy consumption to continue to grow\n&gt; 20 years from now we might need four times that much<p>Population growth + Electric cars + AI changed US electricity consumption from 4.03TWh in 2018 to 4.19 TWH in 2025. That\u2019s less than 0.6% per year, suggesting 4x increase in primary energy consumption from AI in 20 years as a meaningful possibility is insane. <a href=\"https:&#x2F;&#x2F;statbase.org&#x2F;data&#x2F;usa-electricity-consumption&#x2F;\" rel=\"nofollow\">https:&#x2F;&#x2F;statbase.org&#x2F;data&#x2F;usa-electricity-consumption&#x2F;</a>","created_at":"2026-11-10T20:30:00Z","created_at_i":1794342600,"objectID":"50445870","parent_id":50439345,"story_id":50437752,"story_title":"Fossil CO2 emissions decrease in 2026","story_url":"https://news.exeter.ac.uk/faculty-of-environment-science-and-economy/fossil-co2-emissions-decrease-in-2026/","updated_at":"2026-11-11T01:18:25Z"},{"_highlightResult":{"author":{"matchLevel":"none","matchedWords":[],"value":"michaelrbock"},"comment_text":{"fullyHighlighted":false,"matchLevel":"full","matchedWords":["datausa","wiki"],"value":"Here's potentially another one (notice the name &quot;OpenResearchHelper&quot;): <a href=\"https://www.wikiservice.at/gruender/wiki.cgi?action=rc&amp;days=180&amp;all=1\" rel=\"nofollow\">https://www.<em>wiki</em>service.at/gruender/<em>wiki</em>.cgi?action=rc&amp;days=...</a> (I used GPT-6 Astra to find this)<p>And a few more:<p>- <a href=\"https://www.ludism.org/scwiki?action=browse;diff=1;id=SandBox\" rel=\"nofollow\">https://www.ludism.org/scwiki?action=browse;diff=1;id=SandBo...</a> and edit history: <a href=\"https://www.ludism.org/scwiki?action=rc;all=1;from=1;showedit=1;rcidonly=SandBox\" rel=\"nofollow\">https://www.ludism.org/scwiki?action=rc;all=1;from=1;showedi...</a> which contains <em>DataUSA</em> poverty queries for Nacogdoches, Lufkin, Henderson, and Jacksonville\u2014the same four-place task found in the known agent logs and Gr\u00fcnderWiki<p>- <a href=\"https://www.ludism.org/mentat?action=browse;diff=1;id=SandBox\" rel=\"nofollow\">https://www.ludism.org/mentat?action=browse;diff=1;id=SandBo...</a> and edit history: <a href=\"https://www.ludism.org/mentat?action=history;id=SandBox\" rel=\"nofollow\">https://www.ludism.org/mentat?action=history;id=SandBox</a><p>- <a href=\"https://www.pmwiki.org/wiki/Test/WikiSandbox?action=diff\" rel=\"nofollow\">https://www.pmwiki.org/<em>wiki</em>/Test/<em>Wiki</em>Sandbox?action=diff</a> `ResearchTest` repeatedly added links to a Bulgarian National Statistical Institute table, switching from a direct link to Google redirect links between 02:38 and 03:04 UTC. An administrator removed them at 06:57. The previous recorded edits were from 2016.<p>- <a href=\"https://www.pmwiki.org/wiki/Test/Sandbox2?action=diff\" rel=\"nofollow\">https://www.pmwiki.org/<em>wiki</em>/Test/Sandbox2?action=diff</a> - Another sequence inserted a Bulgarian statistical-table link, replaced it with an internal link carrying foobar=UNIQUE001, then removed it. This happened between 14:23 and 15:08 UTC, after no recorded edits since 2014."},"story_title":{"matchLevel":"none","matchedWords":[],"value":"Discovery of a new OpenAI agent message board"},"story_url":{"fullyHighlighted":false,"matchLevel":"partial","matchedWords":["wiki"],"value":"https://collusion.<em>wiki</em>/"}},"_tags":["comment","author_michaelrbock","story_49563355"],"author":"michaelrbock","comment_text":"Here&#x27;s potentially another one (notice the name &quot;OpenResearchHelper&quot;): <a href=\"https:&#x2F;&#x2F;www.wikiservice.at&#x2F;gruender&#x2F;wiki.cgi?action=rc&amp;days=180&amp;all=1\" rel=\"nofollow\">https:&#x2F;&#x2F;www.wikiservice.at&#x2F;gruender&#x2F;wiki.cgi?action=rc&amp;days=...</a> (I used GPT-6 Astra to find this)<p>And a few more:<p>- <a href=\"https:&#x2F;&#x2F;www.ludism.org&#x2F;scwiki?action=browse;diff=1;id=SandBox\" rel=\"nofollow\">https:&#x2F;&#x2F;www.ludism.org&#x2F;scwiki?action=browse;diff=1;id=SandBo...</a> and edit history: <a href=\"https:&#x2F;&#x2F;www.ludism.org&#x2F;scwiki?action=rc;all=1;from=1;showedit=1;rcidonly=SandBox\" rel=\"nofollow\">https:&#x2F;&#x2F;www.ludism.org&#x2F;scwiki?action=rc;all=1;from=1;showedi...</a> which contains DataUSA poverty queries for Nacogdoches, Lufkin, Henderson, and Jacksonville\u2014the same four-place task found in the known agent logs and Gr\u00fcnderWiki<p>- <a href=\"https:&#x2F;&#x2F;www.ludism.org&#x2F;mentat?action=browse;diff=1;id=SandBox\" rel=\"nofollow\">https:&#x2F;&#x2F;www.ludism.org&#x2F;mentat?action=browse;diff=1;id=SandBo...</a> and edit history: <a href=\"https:&#x2F;&#x2F;www.ludism.org&#x2F;mentat?action=history;id=SandBox\" rel=\"nofollow\">https:&#x2F;&#x2F;www.ludism.org&#x2F;mentat?action=history;id=SandBox</a><p>- <a href=\"https:&#x2F;&#x2F;www.pmwiki.org&#x2F;wiki&#x2F;Test&#x2F;WikiSandbox?action=diff\" rel=\"nofollow\">https:&#x2F;&#x2F;www.pmwiki.org&#x2F;wiki&#x2F;Test&#x2F;WikiSandbox?action=diff</a> `ResearchTest` repeatedly added links to a Bulgarian National Statistical Institute table, switching from a direct link to Google redirect links between 02:38 and 03:04 UTC. An administrator removed them at 06:57. The previous recorded edits were from 2016.<p>- <a href=\"https:&#x2F;&#x2F;www.pmwiki.org&#x2F;wiki&#x2F;Test&#x2F;Sandbox2?action=diff\" rel=\"nofollow\">https:&#x2F;&#x2F;www.pmwiki.org&#x2F;wiki&#x2F;Test&#x2F;Sandbox2?action=diff</a> - Another sequence inserted a Bulgarian statistical-table link, replaced it with an internal link carrying foobar=UNIQUE001, then removed it. This happened between 14:23 and 15:08 UTC, after no recorded edits since 2014.","created_at":"2026-09-04T23:05:34Z","created_at_i":1788563134,"objectID":"49571227","parent_id":49563657,"story_id":49563355,"story_title":"Discovery of a new OpenAI agent message board","story_url":"https://collusion.wiki/","updated_at":"2026-10-08T14:42:39Z"},{"_highlightResult":{"author":{"matchLevel":"none","matchedWords":[],"value":"barry-cotter"},"comment_text":{"fullyHighlighted":false,"matchLevel":"full","matchedWords":["datausa","wiki"],"value":"Alabama median household inching $52K <a href=\"https://datausa.io/profile/geo/alabama/\" rel=\"nofollow noreferrer\">https://<em>datausa</em>.io/profile/geo/alabama/</a><p>UK median household income \u00a329.4K\n<a href=\"https://en.m.wikipedia.org/wiki/Income_in_the_United_Kingdom\" rel=\"nofollow noreferrer\">https://en.m.<em>wiki</em>pedia.org/<em>wiki</em>/Income_in_the_United_Kingdom</a><p>There are no US states as poor as the UK, Alabama included."},"story_title":{"matchLevel":"none","matchedWords":[],"value":"Britain Is a Developing Country"},"story_url":{"matchLevel":"none","matchedWords":[],"value":"https://www.sambowman.co/p/britain-is-a-developing-country"}},"_tags":["comment","author_barry-cotter","story_36771928"],"author":"barry-cotter","comment_text":"Alabama median household inching $52K <a href=\"https:&#x2F;&#x2F;datausa.io&#x2F;profile&#x2F;geo&#x2F;alabama&#x2F;\" rel=\"nofollow noreferrer\">https:&#x2F;&#x2F;datausa.io&#x2F;profile&#x2F;geo&#x2F;alabama&#x2F;</a><p>UK median household income \u00a329.4K\n<a href=\"https:&#x2F;&#x2F;en.m.wikipedia.org&#x2F;wiki&#x2F;Income_in_the_United_Kingdom\" rel=\"nofollow noreferrer\">https:&#x2F;&#x2F;en.m.wikipedia.org&#x2F;wiki&#x2F;Income_in_the_United_Kingdom</a><p>There are no US states as poor as the UK, Alabama included.","created_at":"2023-07-18T17:12:28Z","created_at_i":1689700348,"objectID":"36775904","parent_id":36772963,"story_id":36771928,"story_title":"Britain Is a Developing Country","story_url":"https://www.sambowman.co/p/britain-is-a-developing-country","updated_at":"2024-09-20T14:41:12Z"},{"_highlightResult":{"author":{"matchLevel":"none","matchedWords":[],"value":"diggan"},"comment_text":{"fullyHighlighted":false,"matchLevel":"full","matchedWords":["datausa","wiki"],"value":"Funny how people use the web differently :)<p>I also saw &quot;LMDB&quot;, didn't knew what it was, searched LMDB on Kagi, got <a href=\"https://en.wikipedia.org/wiki/Lightning_Memory-Mapped_Database\" rel=\"nofollow\">https://en.<em>wiki</em>pedia.org/<em>wiki</em>/Lightning_Memory-Mapped_<em>Databa</em>...</a> as the first hit. Bing and Google also has it in the top, seems to be relatively known."},"story_title":{"matchLevel":"none","matchedWords":[],"value":"Up to date Rust bindings for LMDB"},"story_url":{"matchLevel":"none","matchedWords":[],"value":"https://crates.io/crates/liblmdb"}},"_tags":["comment","author_diggan","story_41678228"],"author":"diggan","comment_text":"Funny how people use the web differently :)<p>I also saw &quot;LMDB&quot;, didn&#x27;t knew what it was, searched LMDB on Kagi, got <a href=\"https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Lightning_Memory-Mapped_Database\" rel=\"nofollow\">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Lightning_Memory-Mapped_Databa...</a> as the first hit. Bing and Google also has it in the top, seems to be relatively known.","created_at":"2024-10-01T23:12:00Z","created_at_i":1727824320,"objectID":"41715344","parent_id":41715180,"story_id":41678228,"story_title":"Up to date Rust bindings for LMDB","story_url":"https://crates.io/crates/liblmdb","updated_at":"2026-01-10T10:52:24Z"},{"_highlightResult":{"author":{"matchLevel":"none","matchedWords":[],"value":"mmastrac"},"comment_text":{"fullyHighlighted":false,"matchLevel":"full","matchedWords":["datausa","wiki"],"value":"For those of us who don't know, LMDB is a DB, somewhat akin to sqlite or Berkeley DB. It took a bit of time to find the info by chasing links.<p>Please add READMEs to your projects with appropriate links, folks.<p><a href=\"https://crates.io/crates/liblmdb\" rel=\"nofollow\">https://crates.io/crates/liblmdb</a> &lt;-- says it is bindings for LMDB<p>... which links to the repo<p><a href=\"https://github.com/ordinarylabs/liblmdb\">https://github.com/ordinarylabs/liblmdb</a><p>Which has a link to the LMDB repo here (just a submodule) ...<p><a href=\"https://github.com/LMDB/lmdb/tree/9c9d34558cc438f99aebd1ab58f83fd7faeabc0a\">https://github.com/LMDB/lmdb/tree/9c9d34558cc438f99aebd1ab58...</a><p>Which has no info about the project, but links to<p><a href=\"https://www.openldap.org/software/repo.html\" rel=\"nofollow\">https://www.openldap.org/software/repo.html</a><p>Which also has no info about the project, but has an LMDB link which leads to<p><a href=\"https://www.symas.com/lmdb\" rel=\"nofollow\">https://www.symas.com/lmdb</a><p>Which finally explains:<p>&gt; Symas LMDB is an extraordinarily fast, memory-efficient database we developed for the OpenLDAP Project. With memory-mapped files, LMDB has the read performance of a pure in-memory database while retaining the persistence of standard disk-based databases.<p>&gt; Bottom line, with only 32KB of object code, LMDB may seem tiny. But it\u2019s the right 32KB. Compact and efficient are two sides of a coin; that\u2019s part of what makes LMDB so powerful.<p>There's also a <em>wiki</em>page:<p><a href=\"https://en.wikipedia.org/wiki/Lightning_Memory-Mapped_Database\" rel=\"nofollow\">https://en.<em>wiki</em>pedia.org/<em>wiki</em>/Lightning_Memory-Mapped_<em>Databa</em>...</a>"},"story_title":{"matchLevel":"none","matchedWords":[],"value":"Up to date Rust bindings for LMDB"},"story_url":{"matchLevel":"none","matchedWords":[],"value":"https://crates.io/crates/liblmdb"}},"_tags":["comment","author_mmastrac","story_41678228"],"author":"mmastrac","children":[41715344],"comment_text":"For those of us who don&#x27;t know, LMDB is a DB, somewhat akin to sqlite or Berkeley DB. It took a bit of time to find the info by chasing links.<p>Please add READMEs to your projects with appropriate links, folks.<p><a href=\"https:&#x2F;&#x2F;crates.io&#x2F;crates&#x2F;liblmdb\" rel=\"nofollow\">https:&#x2F;&#x2F;crates.io&#x2F;crates&#x2F;liblmdb</a> &lt;-- says it is bindings for LMDB<p>... which links to the repo<p><a href=\"https:&#x2F;&#x2F;github.com&#x2F;ordinarylabs&#x2F;liblmdb\">https:&#x2F;&#x2F;github.com&#x2F;ordinarylabs&#x2F;liblmdb</a><p>Which has a link to the LMDB repo here (just a submodule) ...<p><a href=\"https:&#x2F;&#x2F;github.com&#x2F;LMDB&#x2F;lmdb&#x2F;tree&#x2F;9c9d34558cc438f99aebd1ab58f83fd7faeabc0a\">https:&#x2F;&#x2F;github.com&#x2F;LMDB&#x2F;lmdb&#x2F;tree&#x2F;9c9d34558cc438f99aebd1ab58...</a><p>Which has no info about the project, but links to<p><a href=\"https:&#x2F;&#x2F;www.openldap.org&#x2F;software&#x2F;repo.html\" rel=\"nofollow\">https:&#x2F;&#x2F;www.openldap.org&#x2F;software&#x2F;repo.html</a><p>Which also has no info about the project, but has an LMDB link which leads to<p><a href=\"https:&#x2F;&#x2F;www.symas.com&#x2F;lmdb\" rel=\"nofollow\">https:&#x2F;&#x2F;www.symas.com&#x2F;lmdb</a><p>Which finally explains:<p>&gt; Symas LMDB is an extraordinarily fast, memory-efficient database we developed for the OpenLDAP Project. With memory-mapped files, LMDB has the read performance of a pure in-memory database while retaining the persistence of standard disk-based databases.<p>&gt; Bottom line, with only 32KB of object code, LMDB may seem tiny. But it\u2019s the right 32KB. Compact and efficient are two sides of a coin; that\u2019s part of what makes LMDB so powerful.<p>There&#x27;s also a wikipage:<p><a href=\"https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Lightning_Memory-Mapped_Database\" rel=\"nofollow\">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Lightning_Memory-Mapped_Databa...</a>","created_at":"2024-10-01T22:53:21Z","created_at_i":1727823201,"objectID":"41715180","parent_id":41678228,"story_id":41678228,"story_title":"Up to date Rust bindings for LMDB","story_url":"https://crates.io/crates/liblmdb","updated_at":"2024-10-02T10:46:59Z"},{"_highlightResult":{"author":{"matchLevel":"none","matchedWords":[],"value":"refset"},"comment_text":{"fullyHighlighted":false,"matchLevel":"full","matchedWords":["datausa","wiki"],"value":"&gt; I'm not sure if there are any databases that do your 'with a lot of care' option<p>LMDB springs to mind.<p>&gt; LMDB was designed to resist data loss in the face of system and application crashes. Its copy-on-write approach never overwrites currently-in-use data. Avoiding overwrites means the structure on disk/storage is always valid, so application or system crashes can never leave the database in a corrupted state.<p><a href=\"https://en.wikipedia.org/wiki/Lightning_Memory-Mapped_Database\" rel=\"nofollow\">https://en.<em>wiki</em>pedia.org/<em>wiki</em>/Lightning_Memory-Mapped_<em>Databa</em>...</a>"},"story_title":{"matchLevel":"none","matchedWords":[],"value":"A write-ahead log is not a universal part of durability"},"story_url":{"matchLevel":"none","matchedWords":[],"value":"https://notes.eatonphil.com/2024-07-01-a-write-ahead-log-is-not-a-universal-part-of-durability.html"}},"_tags":["comment","author_refset","story_40844825"],"author":"refset","comment_text":"&gt; I&#x27;m not sure if there are any databases that do your &#x27;with a lot of care&#x27; option<p>LMDB springs to mind.<p>&gt; LMDB was designed to resist data loss in the face of system and application crashes. Its copy-on-write approach never overwrites currently-in-use data. Avoiding overwrites means the structure on disk&#x2F;storage is always valid, so application or system crashes can never leave the database in a corrupted state.<p><a href=\"https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Lightning_Memory-Mapped_Database\" rel=\"nofollow\">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Lightning_Memory-Mapped_Databa...</a>","created_at":"2024-07-01T19:31:43Z","created_at_i":1719862303,"objectID":"40849641","parent_id":40848690,"story_id":40844825,"story_title":"A write-ahead log is not a universal part of durability","story_url":"https://notes.eatonphil.com/2024-07-01-a-write-ahead-log-is-not-a-universal-part-of-durability.html","updated_at":"2024-09-20T17:23:19Z"},{"_highlightResult":{"author":{"matchLevel":"none","matchedWords":[],"value":"kazinator"},"comment_text":{"fullyHighlighted":false,"matchLevel":"full","matchedWords":["datausa","wiki"],"value":"An importunately verbose and complicated API that I've recently come across is that of LMDB.<p><a href=\"https://en.wikipedia.org/wiki/Lightning_Memory-Mapped_Database\" rel=\"nofollow noreferrer\">https://en.<em>wiki</em>pedia.org/<em>wiki</em>/Lightning_Memory-Mapped_<em>Databa</em>...</a><p>Here is a long page explaining how to initialize things. (Warning: HTTP only!)<p><a href=\"http://www.lmdb.tech/doc/starting.html\" rel=\"nofollow noreferrer\">http://www.lmdb.tech/doc/starting.html</a><p>Ya gotta create an environment with <i>mdb_env_create</i>. So okay, that is ready to use, right? Constructor has been called, we have an object, right? Nope! You have to <i>open</i> it now, with <i>mdb_env_open</i>.<p>But what the above page doesn't tell you is that <i>mdb_env_create</i> has flags. Oooh yeah.  MDB_FIXEDMAP, MDB_NOSUBDIR,\nMDB_RDONLY, MDB_WRITEMAP, MDB_NOMETASYNC, MDB_NOSYNC, MDB_NOTLS, MDB_NOLOCK, MDB_NORDAHEAD, MDB_NOMEMINIT, ...<p>What are all these for? Should you be using any of them? Are the defaults good?<p>So, once we have an env with the right flags, we can <i>mdb_txn_begin</i>. This takes flags again. Luckily, only MDB_RDONLY applies. Probably ....<p>So we are ready to transact now, right? Nope. &quot;Once a transaction has been created, a database can be opened within it using <i>mdb_dbi_open</i>().&quot; [Which has seven flags!]<p>But wait, the documentation hastens to add: &quot;[a]lso, <i>mdb_env_set_maxdbs()</i> must be called after <i>mdb_env_create()</i> and before <i>mdb_env_open()</i> to set the maximum number of named databases you want to support.&quot;<p>Finally, &quot;[w]ithin a transaction, <i>mdb_get()</i> and <i>mdb_put()</i> can store single key/value pairs if that is all you need to do (but see Cursors below if you want to do more).&quot;<p>Ah cursors. Here, <i>mdb_cursor_create</i> doesn't have flags, phew! But there is an integer op code. <i>mdb_cursor_get</i> is basically the ioctl of database access. \nMDB_FIRST,  \nMDB_FIRST_DUP,  \nMDB_GET_BOTH, \nMDB_GET_BOTH_RANGE,  \nMDB_GET_CURRENT,  \nMDB_GET_MULTIPLE,  \nMDB_LAST,  \nMDB_LAST_DUP,  \nMDB_NEXT, \nMDB_NEXT_DUP,\nMDB_NEXT_MULTIPLE,  \nMDB_NEXT_NODUP,  \nMDB_PREV,  \nMDB_PREV_DUP,  \nMDB_PREV_NODUP,  \nMDB_SET,  \nMDB_SET_KEY,  \nMDB_SET_RANGE."},"story_title":{"matchLevel":"none","matchedWords":[],"value":"The worst API ever made (2014)"},"story_url":{"matchLevel":"none","matchedWords":[],"value":"https://caseymuratori.com/blog_0025"}},"_tags":["comment","author_kazinator","story_36951289"],"author":"kazinator","children":[36952311,36955490],"comment_text":"An importunately verbose and complicated API that I&#x27;ve recently come across is that of LMDB.<p><a href=\"https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Lightning_Memory-Mapped_Database\" rel=\"nofollow noreferrer\">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Lightning_Memory-Mapped_Databa...</a><p>Here is a long page explaining how to initialize things. (Warning: HTTP only!)<p><a href=\"http:&#x2F;&#x2F;www.lmdb.tech&#x2F;doc&#x2F;starting.html\" rel=\"nofollow noreferrer\">http:&#x2F;&#x2F;www.lmdb.tech&#x2F;doc&#x2F;starting.html</a><p>Ya gotta create an environment with <i>mdb_env_create</i>. So okay, that is ready to use, right? Constructor has been called, we have an object, right? Nope! You have to <i>open</i> it now, with <i>mdb_env_open</i>.<p>But what the above page doesn&#x27;t tell you is that <i>mdb_env_create</i> has flags. Oooh yeah.  MDB_FIXEDMAP, MDB_NOSUBDIR,\nMDB_RDONLY, MDB_WRITEMAP, MDB_NOMETASYNC, MDB_NOSYNC, MDB_NOTLS, MDB_NOLOCK, MDB_NORDAHEAD, MDB_NOMEMINIT, ...<p>What are all these for? Should you be using any of them? Are the defaults good?<p>So, once we have an env with the right flags, we can <i>mdb_txn_begin</i>. This takes flags again. Luckily, only MDB_RDONLY applies. Probably ....<p>So we are ready to transact now, right? Nope. &quot;Once a transaction has been created, a database can be opened within it using <i>mdb_dbi_open</i>().&quot; [Which has seven flags!]<p>But wait, the documentation hastens to add: &quot;[a]lso, <i>mdb_env_set_maxdbs()</i> must be called after <i>mdb_env_create()</i> and before <i>mdb_env_open()</i> to set the maximum number of named databases you want to support.&quot;<p>Finally, &quot;[w]ithin a transaction, <i>mdb_get()</i> and <i>mdb_put()</i> can store single key&#x2F;value pairs if that is all you need to do (but see Cursors below if you want to do more).&quot;<p>Ah cursors. Here, <i>mdb_cursor_create</i> doesn&#x27;t have flags, phew! But there is an integer op code. <i>mdb_cursor_get</i> is basically the ioctl of database access. \nMDB_FIRST,  \nMDB_FIRST_DUP,  \nMDB_GET_BOTH, \nMDB_GET_BOTH_RANGE,  \nMDB_GET_CURRENT,  \nMDB_GET_MULTIPLE,  \nMDB_LAST,  \nMDB_LAST_DUP,  \nMDB_NEXT, \nMDB_NEXT_DUP,\nMDB_NEXT_MULTIPLE,  \nMDB_NEXT_NODUP,  \nMDB_PREV,  \nMDB_PREV_DUP,  \nMDB_PREV_NODUP,  \nMDB_SET,  \nMDB_SET_KEY,  \nMDB_SET_RANGE.","created_at":"2023-08-01T03:21:43Z","created_at_i":1690860103,"objectID":"36951922","parent_id":36951289,"story_id":36951289,"story_title":"The worst API ever made (2014)","story_url":"https://caseymuratori.com/blog_0025","updated_at":"2024-09-20T14:47:55Z"},{"_highlightResult":{"author":{"matchLevel":"none","matchedWords":[],"value":"crabbone"},"comment_text":{"fullyHighlighted":false,"matchLevel":"full","matchedWords":["datausa","wiki"],"value":"&gt; Most applications today are running on smartphones/mobile devices.<p>That's patently false. There are about 8 bn. people.  Even if everyone has a smartphone or two, it's nothing compared to the total of all devices that can be called &quot;computer&quot;.  I think that &quot;smart TV&quot; alone will beat the number of smartphones.  But even that is a drop in a bucket when it comes to the total of running programs on Earth / its orbit.<p>But, that's beside the point. Smartphones aren't designed to run database servers.  Even if they indeed were the majority, they'd still be irrelevant for this conversation because they are a wrong platform for deploying databases.  In other words, it doesn't matter how people deploy databases to smartphones -- they have no hopes of achieving good performance, and whether they use mmap or not is of no consequences -- they've lost the race before they even qualified for it.<p>&gt; LMDB<p>Are we talking about this? <a href=\"https://en.wikipedia.org/wiki/Lightning_Memory-Mapped_Database\" rel=\"nofollow noreferrer\">https://en.<em>wiki</em>pedia.org/<em>wiki</em>/Lightning_Memory-Mapped_<em>Databa</em>...</a> If so, this is irrelevant for databases in general.<p>&gt; LMDB databases may have only one writer at a time<p>(Taken from the page above) -- this isn't a serious contender for database server space.  It's a toy database.  You shouldn't give general advice based on whatever this system does or doesn't."},"story_title":{"matchLevel":"none","matchedWords":[],"value":"Are You Sure You Want to Use MMAP in Your Database Management System? (2022)"},"story_url":{"matchLevel":"none","matchedWords":[],"value":"https://db.cs.cmu.edu/mmap-cidr2022/"}},"_tags":["comment","author_crabbone","story_36563187"],"author":"crabbone","children":[36569324,36569693],"comment_text":"&gt; Most applications today are running on smartphones&#x2F;mobile devices.<p>That&#x27;s patently false. There are about 8 bn. people.  Even if everyone has a smartphone or two, it&#x27;s nothing compared to the total of all devices that can be called &quot;computer&quot;.  I think that &quot;smart TV&quot; alone will beat the number of smartphones.  But even that is a drop in a bucket when it comes to the total of running programs on Earth &#x2F; its orbit.<p>But, that&#x27;s beside the point. Smartphones aren&#x27;t designed to run database servers.  Even if they indeed were the majority, they&#x27;d still be irrelevant for this conversation because they are a wrong platform for deploying databases.  In other words, it doesn&#x27;t matter how people deploy databases to smartphones -- they have no hopes of achieving good performance, and whether they use mmap or not is of no consequences -- they&#x27;ve lost the race before they even qualified for it.<p>&gt; LMDB<p>Are we talking about this? <a href=\"https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Lightning_Memory-Mapped_Database\" rel=\"nofollow noreferrer\">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Lightning_Memory-Mapped_Databa...</a> If so, this is irrelevant for databases in general.<p>&gt; LMDB databases may have only one writer at a time<p>(Taken from the page above) -- this isn&#x27;t a serious contender for database server space.  It&#x27;s a toy database.  You shouldn&#x27;t give general advice based on whatever this system does or doesn&#x27;t.","created_at":"2023-07-02T22:39:07Z","created_at_i":1688337547,"objectID":"36566534","parent_id":36566050,"story_id":36563187,"story_title":"Are You Sure You Want to Use MMAP in Your Database Management System? (2022)","story_url":"https://db.cs.cmu.edu/mmap-cidr2022/","updated_at":"2024-09-20T14:28:16Z"},{"_highlightResult":{"author":{"matchLevel":"none","matchedWords":[],"value":"throw0101a"},"comment_text":{"fullyHighlighted":false,"matchLevel":"full","matchedWords":["datausa","wiki"],"value":"&gt; <i>I suspect if the concept of the registry was created today it would look more like a database (e.g. Sqlite), although organizing it like a virtual FileSystem does have a certain appeal, and unfortunately I don't know of a database engine that supports such a layout.</i><p>(Open)LDAP uses a hierarchical structure and saves its data in a database:<p>* <a href=\"https://en.wikipedia.org/wiki/Lightning_Memory-Mapped_Database\" rel=\"nofollow\">https://en.<em>wiki</em>pedia.org/<em>wiki</em>/Lightning_Memory-Mapped_<em>Databa</em>...</a><p>* <a href=\"https://www.openldap.org/software/man.cgi?query=slapd-mdb\" rel=\"nofollow\">https://www.openldap.org/software/man.cgi?query=slapd-mdb</a>"},"story_title":{"matchLevel":"none","matchedWords":[],"value":"Why the Windows Registry sucks technically (2010)"},"story_url":{"matchLevel":"none","matchedWords":[],"value":"https://rwmj.wordpress.com/2010/02/18/why-the-windows-registry-sucks-technically/"}},"_tags":["comment","author_throw0101a","story_32275078"],"author":"throw0101a","comment_text":"&gt; <i>I suspect if the concept of the registry was created today it would look more like a database (e.g. Sqlite), although organizing it like a virtual FileSystem does have a certain appeal, and unfortunately I don&#x27;t know of a database engine that supports such a layout.</i><p>(Open)LDAP uses a hierarchical structure and saves its data in a database:<p>* <a href=\"https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Lightning_Memory-Mapped_Database\" rel=\"nofollow\">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Lightning_Memory-Mapped_Databa...</a><p>* <a href=\"https:&#x2F;&#x2F;www.openldap.org&#x2F;software&#x2F;man.cgi?query=slapd-mdb\" rel=\"nofollow\">https:&#x2F;&#x2F;www.openldap.org&#x2F;software&#x2F;man.cgi?query=slapd-mdb</a>","created_at":"2022-07-29T15:54:26Z","created_at_i":1659110066,"objectID":"32278543","parent_id":32275561,"story_id":32275078,"story_title":"Why the Windows Registry sucks technically (2010)","story_url":"https://rwmj.wordpress.com/2010/02/18/why-the-windows-registry-sucks-technically/","updated_at":"2024-09-20T11:43:37Z"}],"hitsPerPage":10,"nbHits":16,"nbPages":2,"page":0,"params":"query=DataUSA+wiki&hitsPerPage=10&advancedSyntax=true&analyticsTags=backend","processingTimeMS":16,"processingTimingsMS":{"_request":{"roundTrip":20},"afterFetch":{"format":{"total":1},"merge":{"mergeLoop":{"prepareNextHit":2,"total":2},"total":3},"total":3},"fetch":{"query":9,"scanning":2,"total":12},"total":16},"query":"DataUSA wiki","serverTimeMS":17}
