> - Did you call 'pool' with '*Dbs'?
> - Are you sure you started with an empty database after you changed 'dbs'=
?

Yes on both accounts, strange, I will do some isolated tests today, ie
not use my normal import functions but instead simply insert some test
data into an empty database and then see where stuff ends up.

> Note that the tree root nodes (e.g. {2}) above are always created in file=
 #1.

What exactly do you mean by this?

> Forgot this one. No, 'count' doesn't need to be entered into 'dbs'. It ha=
s no index and thus does not create external objects.

I see but the information itself has to be stored somewhere, obviously
in my example above it's there in #1 in my copy pasted step result.
However, in your case it's missing from the printouts.

I'm going to step #6 and #12 tonight too (they are large too, 50+ MB),
I should have done that before I sent the prior questions.

Could the way I'm inserting new objects matter? I usually do a request
followed by several put> to get some extra information into the
object, finally I finish with commit.

/Henrik



On Wed, Aug 19, 2009 at 9:27 AM, Alexander Burger<a...@software-lab.de> wrot=
e:
> Hi Henrik,
>
>> (class +WordCount +Entity) #
>> (rel word =A0 =A0 =A0(+Aux +Ref +Link) (article) NIL (+Aword)) #
>> (rel article =A0 (+Ref +Link) NIL (+Article)) #
>> (rel count =A0 =A0 (+Number))
>>
>> (dbs
>> ...
>> =A0 =A0(4 +WordCount +Similarity) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0# 6 <-------
>
> This looks good. All '+WordCount' objects should be created in file #6.
>
>> ...
>> =A0 =A0(3 (+WordCount word article)) =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
 # 12 <--------
>
> And this is correct, too. This means that the tree nodes for the
> 'word' and 'article' indexes will be created in file #12.
>
>
> As a test, I boiled this down to
>
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> (class +WordCount +Entity)
> (rel word =A0 =A0 =A0(+Ref +String))
> (rel article =A0 (+Ref +Number))
> (rel count =A0 =A0 (+Number))
>
> (dbs
> =A0 (1)
> =A0 (4 +WordCount +Similarity)
> =A0 (3 (+WordCount word article)) )
>
> (pool "dbx" *Dbs)
>
> (new! '(+WordCount) 'word "abc" 'article 123)
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
> (I replaced 'word' and 'article' with a string and a number for
> simplicity)
>
> Then the objects are created in the right places:
>
> =A0 : (select +WordCount)
> =A0 {2-1} (+WordCount) =A0 =A0 =A0# In file #2
> =A0 =A0 =A0article 123
> =A0 =A0 =A0word "abc"
>
> =A0 : (show *DB '+WordCount)
> =A0 {2} NIL
> =A0 =A0 =A0word (1 . {3-1}) =A0 =A0 # In file #3
> =A0 =A0 =A0article (1 . {3-2})
> =A0 -> {2}
>
> Note that the tree root nodes (e.g. {2}) above are always created in
> file #1. If you have '+Hooks', there can be quite a lot of those, but
> AFAIK there are not hooks in your case.
>
>
> So what might be the problem?
>
> - Did you call 'pool' with '*Dbs'?
> - Are you sure you started with an empty database after you changed 'dbs'=
?
>
> If the latter is not the case, you might call (dbfMigrate "db/..." *Dbs)
> to have the objects moved automatically. But simply deleting all db
> files is easier, and perhaps cleaner.
>
>
>> I almost forgot, I think I am seeing +Aux relations in no 1 too,
>> fairly long lists of dotted pairs smells like it. I suppose my dbs
>> example in the prior post won't take care of them properly, ie putting
>> them in their own files?
>
> No, it should be OK. An '+Aux' tree is completely normal in this respect.
> It is just that the index keys are a combination of sub-keys.
>
> Cheers,
> - Alex
> --
> UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=3dunsubscribe
>
-- 
UNSUBSCRIBE: mailto:picol...@software-lab.de?subject=unsubscribe

Reply via email to