FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Optimizing ThingsDB: Speeding up with Type Indexes
NewsDevOps

Optimizing ThingsDB: Speeding up with Type Indexes

via Dev.toJeroen van der Heijden1mo ago

In the latest release of ThingsDB , we’ve introduced a way to significantly accelerate the type_all() function. By enabling type indexing, you can now loop over all instances of a specific type with near-instant results. The "Ideal" Way: Hierarchical Access In ThingsDB, the preferred pattern for accessing data is through your own code logic. At InfraSonar , for example, we use a hierarchical structure for our Container type. Every container can have children, and we retrieve the entire tree starting from a .root container. new_type ( ' Container ' ); set_type ( ' Container ' , { name : ' str ' , children : ' {Container} ' , get_containers : | this | { // Recursively collect all containers in a set this . children . reduce ( | a , c | a |= c . get_containers (), set ( this )); } }); // Return a set with all containers via the root: . root . get_containers (); The Problem: When type_all() is slow There are scenarios where data isn't easily reachable through a single root, or where you si

Continue reading on Dev.to

Opens in a new tab

Read Full Article
26 views

Related Articles

From Raw Data to Powerful Decisions: Mastering the Art of Turning Data into Insights ✨
News

From Raw Data to Powerful Decisions: Mastering the Art of Turning Data into Insights ✨

Medium Programming • 2d ago

News

I made 40+ projects and here’s what I got…

Medium Programming • 2d ago

TechCrunch Mobility: When a robotaxi has to call 911
News

TechCrunch Mobility: When a robotaxi has to call 911

TechCrunch • 2d ago

Demonetization Simulation
News

Demonetization Simulation

Dev.to • 2d ago

OneLuaPro v5.5.0.1 released
News

OneLuaPro v5.5.0.1 released

Lobsters • 2d ago

Discover More Articles