Re: id field

Fernando Antonio Mac Cracken Cezar <[email protected]> Tue, 11 Nov 2003 12:42:39 +0100
Newsgroups gmane.comp.tools.memaid.devel
Message-ID <1068550959.3964.42.camel@corsario>
> I's bad to write such thing to import items *directly* to MemAid database 
> (elements.* file). But doing so you mess up with items - imported items will 
> miss data from initial 'review', interval will be... ahem. Yuck!
> 

I was actually thinking of importing words into a brand new created DB
and not into an DB *in production*.

> (BTW: a script in contrib_1 package that imports data to MemAid format, is a 
> pretty good example of a something one should never do, unless one imports 
> data from another supermemo/memaid-like software, where items were *already* 
> in a learning process.)

That is what I also want ... to import SuperMemo DBs.  Anyway I'll take
a look at this 'anti-pattern' script example ;-)

> 
> Instead, you should first import them to queue.txt, and they really will go to 
> the learning process later, one-by-one, in more than one second space, unless 
> you are so superman that you learn so quickly (more than 2 items in 1 
> second) ... :)

I didn't know about this queue.txt possibility. That is nice actually,
I'll check it out. Thx, for the tip.

> 
> > It isn't a nice approach to write a sleep
> > statement before importing each new word, is it? ;-).
> 
> No, not nice. But after all, if anyone will have such a weird need to import 
> items *directly* to MemAid database (which is generally very bad, as I said),
> *then* one can came up with another solution for own needs (e.g. "take a 
> random number and make a bit operation on top of the system time"), right?

It was exactly what I said ... It "isn't" nice ...
Anyway, let's drop this jokes about the system-time-bit-operation thing,
that was just a sudden idea ( not perfect, I assume ) to solve the
system time ID problem. So David, forgive me ;-)

> Sure they are very welcome.
> So, anyone has a better solution than Unix time? :>

> Now, the only con I see is that one can really learn so quickly (and 
> carelessly :-P), that can make two items in 1 second. O_o
> But I highly doubt it's possible (have just done some test with a stop-watch   
> - I can't achieve 2 items in 1 sec. even not looking at answer/questions.)
> 

Just a comment: It is stated on the web site that a CGI interface for
Memaid is planned. What would happen if this CGI is highly accessed by
multiple users? Wouldn't be possible to have identical system time IDs ?
Different DBs for each user is surely a solution, isn't ?    

It is just a topic for further discussion.

F.


> DC
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by: ApacheCon 2003,
> 16-19 November in Las Vegas. Learn firsthand the latest
> developments in Apache, PHP, Perl, XML, Java, MySQL,
> WebDAV, and more! http://www.apachecon.com/
> _______________________________________________
> Memaid-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/memaid-devel
-- 
Fernando Antonio Mac Cracken Cezar <[email protected]>



-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/