Re: [ArchEc] Regarding obi_handle cache database structure
Rishabh Sharma writes
How can we have same _id in collection.
I am sorry to be talking rubbishly. I am under a lot of stress. There can be many record with differenet id_ in one collection. A collection, as I understand it is a container to hold records of a similar form together. It's a bit like table in a rdms. Cheers, Thomas Krichel http://openlib.org/home/krichel http://authorprofile.org/pkr1 skype: thomaskrichel
There can be many record with differenet id_ in one collection. A collection, as I understand it is a container to hold records of a similar form together. It's a bit like table in a rdms.
Yes this is what i am doing Creating collection for each handle. But the problem is script ~/bin/handle_cache which perform this task get terminated in between without giving any error. May be I was thinking there is a limit to the number of collection in database. Ok Let me do some more research for solving this problem. And If i am not able to solve it i will let you know..... -- Rishabh Sharma Software Developer Anantya R&D http://www.anantyarnd.in
Rishabh Sharma writes
There can be many record with differenet id_ in one collection. A collection, as I understand it is a container to hold records of a similar form together. It's a bit like table in a rdms.
Yes this is what i am doing Creating collection for each handle.
Don't do this. keep all handles in the same collection. Cheers, Thomas Krichel http://openlib.org/home/krichel http://authorprofile.org/pkr1 skype: thomaskrichel
There can be many record with differenet id_ in one collection. A collection, as I understand it is a container to hold records of a similar form together. It's a bit like table in a rdms.
Yes this is what i am doing Creating collection for each handle.
Don't do this. keep all handles in the same collection.
I dont understand how to do it ? -- Rishabh Sharma Software Developer Anantya R&D http://www.anantyarnd.in
There can be many record with differenet id_ in one collection.
A collection, as I understand it is a container to hold records
of a similar form together. It's a bit like table in a rdms.
Yes this is what i am doing Creating collection for each handle.
Don't do this. keep all handles in the same collection.
I dont understand how to do it ?
If we have to keep handle in one collection. Than how can we have the Handle linked to many timestamps and checksums. Also $./.bashrc -bash: ./.bashrc: Permission denied
--
Rishabh Sharma Software Developer Anantya R&D http://www.anantyarnd.in
Rishabh Sharma writes
There can be many record with differenet id_ in one collection.
A collection, as I understand it is a container to hold records
of a similar form together. It's a bit like table in a rdms.
Yes this is what i am doing Creating collection for each handle.
Don't do this. keep all handles in the same collection.
I dont understand how to do it ?
If we have to keep handle in one collection. Than how can we have the Handle linked to many timestamps and checksums.
The record for a in obi id is a reference to a sturcucture may contain as many timestamps and checksums as we like.
Also $./.bashrc -bash: ./.bashrc: Permission denied
. ~/.bashrc please. Cheers, Thomas Krichel http://openlib.org/home/krichel http://authorprofile.org/pkr1 skype: thomaskrichel
Hello Thomas, I made one mistake while i was trying to solve .bashrc problem i was reading one blog and by mistake i ran this command chmod +R 744 /home/archec What should i do to restore default permission.. On Sat, Feb 23, 2013 at 3:28 PM, Thomas Krichel <krichel@openlib.org> wrote:
Rishabh Sharma writes
There can be many record with differenet id_ in one collection.
A collection, as I understand it is a container to hold records
of a similar form together. It's a bit like table in a rdms.
Yes this is what i am doing Creating collection for each handle.
Don't do this. keep all handles in the same collection.
I dont understand how to do it ?
If we have to keep handle in one collection. Than how can we have the Handle linked to many timestamps and checksums.
The record for a in obi id is a reference to a sturcucture may contain as many timestamps and checksums as we like.
Also $./.bashrc -bash: ./.bashrc: Permission denied
. ~/.bashrc
please.
Cheers,
Thomas Krichel http://openlib.org/home/krichel http://authorprofile.org/pkr1 skype: thomaskrichel
-- Rishabh Sharma Software Developer Anantya R&D http://www.anantyarnd.in
Ok im running this hope it will solve the problem find . -type f -exec chmod 644 {} \; && find . -type d -exec chmod 755 {} \; On Sat, Feb 23, 2013 at 7:07 PM, Rishabh Sharma <anantyarnd@gmail.com>wrote:
Hello Thomas, I made one mistake while i was trying to solve .bashrc problem i was reading one blog and by mistake i ran this command
chmod +R 744 /home/archec
What should i do to restore default permission..
On Sat, Feb 23, 2013 at 3:28 PM, Thomas Krichel <krichel@openlib.org>wrote:
Rishabh Sharma writes
There can be many record with differenet id_ in one collection.
A collection, as I understand it is a container to hold records > of a similar form together. It's a bit like table in a rdms. > Yes this is what i am doing Creating collection for each handle.
Don't do this. keep all handles in the same collection.
I dont understand how to do it ?
If we have to keep handle in one collection. Than how can we have the Handle linked to many timestamps and checksums.
The record for a in obi id is a reference to a sturcucture may contain as many timestamps and checksums as we like.
Also $./.bashrc -bash: ./.bashrc: Permission denied
. ~/.bashrc
please.
Cheers,
Thomas Krichel http://openlib.org/home/krichel http://authorprofile.org/pkr1 skype: thomaskrichel
-- Rishabh Sharma Software Developer Anantya R&D http://www.anantyarnd.in
-- Rishabh Sharma Software Developer Anantya R&D http://www.anantyarnd.in
Hello Thomas, It is cache part is complete. One collection is handle_info which contains checksum, timestamp and reference from other collection handles which contains unique list of handles. so in short handles in handles collection are pointing to data in handle_info collection. Also even after running "$mongod --dbpath ~/opt/mongodb " database path remained to /var/lib/mongodb ( i dont know why). I tried many times but path remains same. What i suggest we can make symlink of /var/lib/mongodb to ~/opt/mongodb. -- Rishabh Sharma Software Developer Anantya R&D http://www.anantyarnd.in
Rishabh Sharma writes
It is cache part is complete. One collection is handle_info which contains checksum, timestamp and reference from other collection handles which contains unique list of handles.
I am not sure it
so in short handles in handles collection are pointing to data in handle_info collection.
I think there should be only one collection, say tobi, fro
Also even after running "$mongod --dbpath ~/opt/mongodb " database path remained to /var/lib/mongodb ( i dont know why). I tried many times but path remains same. What i suggest we can make symlink of /var/lib/mongodb to ~/opt/mongodb.
This will need to be fixed. In the meantime, can you start working on the next tarball and report * number of unchangde templates * number of changed templates * number of new templates * number of lost templates Cheers, Thomas Krichel http://openlib.org/home/krichel http://authorprofile.org/pkr1 skype: thomaskrichel
I think there should be only one collection, say tobi, fro This will need to be fixed. Actually there are only two collection one containing list of tobi handles and other consisting of information of tobi handles like time stamp and checksum. Each tobi handle in handle collection points to various entries in collection containing tobi handle information. This is how reference can be build in Mongodb.
In the meantime, can you start working on the next tarball and report
* number of unchangde templates * number of changed templates * number of new templates * number of lost templates Ok do i have to proceed with this tarball RePEc_2007-03-01.tar.gz and i have to untar it to ~/data/current directory and remove the old content of this directory.
-- Rishabh Sharma Software Developer Anantya R&D http://www.anantyarnd.in
Rishabh Sharma writes
I think there should be only one collection, say tobi, fro This will need to be fixed. Actually there are only two collection one containing list of tobi handles and other consisting of information of tobi handles like time stamp and checksum. Each tobi handle in handle collection points to various entries in collection containing tobi handle information.
It dosen not need to. In Perl you build a refernce withe informaiton as required and then you serialize it with JSON and store in the database. IT looks to me that your approach is based on a missuderstanding of the capabilties of mongodb. if your data is in $d $d->{ID}->{FILE1}=CHECKSUM1; $d->{ID}->{FILE2}=CHECKSUM2; $d->{ID}->{CHECKSUM1}=FILE1; $d->{ID}->{CHECKSUM2}=FILE2;
This is how reference can be build in Mongodb.
I don't understand why we can't just do with one collection?
Ok do i have to proceed with this tarball RePEc_2007-03-01.tar.gz and i have to untar it to ~/data/current directory and remove the old content of this directory.
No. Current has to stay as is. It is the link to the current directory. Pleae untar the next tarball into temporary directory and then delete that when your are done. Otherwise all tihs will land up being mirrored. Cheers, Thomas Krichel http://openlib.org/home/krichel http://authorprofile.org/pkr1 skype: thomaskrichel
It dosen not need to. In Perl you build a refernce withe
informaiton as required and then you serialize it with JSON and store in the database.
IT looks to me that your approach is based on a missuderstanding of the capabilties of mongodb.
ok It is possible that i am wrong as i am new to mongodb but can you please see the output of you clear idea of cache. $./bin/test it will give -- Rishabh Sharma Software Developer Anantya R&D http://www.anantyarnd.in
ok It is possible that i am wrong as i am new to mongodb but can you please see the output of ./bin/test it will give you clear idea of cache. -- Rishabh Sharma Software Developer Anantya R&D http://www.anantyarnd.in
Hi Thomas, Have you checked ./bin/test On Mon, Feb 25, 2013 at 8:53 PM, Rishabh Sharma <anantyarnd@gmail.com>wrote:
ok It is possible that i am wrong as i am new to mongodb but can you please see the output of ./bin/test it will give you clear idea of cache.
-- Rishabh Sharma Software Developer Anantya R&D http://www.anantyarnd.in
-- Rishabh Sharma Software Developer Anantya R&D http://www.anantyarnd.in
participants (2)
-
Rishabh Sharma -
Thomas Krichel