Back to subdatabases, with tools

Our last query ? select find_record(i) from unid_node where a = -145 limit 2 was fast enough in reaching records containing a certain type of property, provided we added a generic partial symbol (-145) targeting this type. Now we must notice that it's exactly what does a subdatabase. No need to describe our properties for … Continue reading Back to subdatabases, with tools

Advertisements

A golden ratio of data management

Until now we learned that Unidatab is a complicated engine that makes the act of looking for information slower and clumsier. Our last query for instance involved isolating a set of values sharing the same type from a much larger set (symbols). This kind of query is slow when the sets are numerous. No comparison with a classical db. … Continue reading A golden ratio of data management

Note on coercion

In the last post we saw several means of organizing data, namely templates, subsumption, and examplification. However, those means could be made more effective if there was more direction on how they operate. For instance, examplify() should be able to feed a record without having to repeat type names explicitly, but we didn’t choose the … Continue reading Note on coercion

More about properties and types

As we can grasp it now the node table is mess: nodes don't appear in the order of their chain but according to the moment in which they were created. Though located in another table, symbols look like nodes but constitute another type of entry. But of what types are we talking about in this … Continue reading More about properties and types

How to delete a record: flyers and junk

? select remove_record(-214) 4 This function takes care of cleaning the base (more precisely the symbol table) from occurences of the deleted record, replacing them by 0. It only accepts valid record ids (identification numbers) and returns the number of nodes deleted (not the number of nodes modified). Flyers and junks The record contains symbols … Continue reading How to delete a record: flyers and junk

How to create a record

In the previous example we were trying to append a symbol to a record called 'myrecord'. Let's see how to create this record. We can do this conveniently through make_record(): ? select make_record('myrecord','test') -204 How does this new record, which only has a title and a format, look like: ? select send_full_record(-204,1) -204 63 -201 … Continue reading How to create a record

Structure of the node table 1: records

A careful analysis of the following table - which constitute one Unidatab record - will make clear how the software procedes: ? select show_record('unid_home') i a d n t u -195 59 -195 -196 1355779205 admin -196 -170 -195 -198 1355779205 admin -198 -197 -196 -200 1362506937 admin -200 -199 -198 -0 1365953523 admin These … Continue reading Structure of the node table 1: records