On Oct 25, 4:23 pm, Mitesh Patel <qed...@gmail.com> wrote: >>[...] > On 10/25/2010 01:54 PM, William Stein wrote: > > * A document with a unique id, starting at 0, for each actual test > > {'id':0, 'code':'factor(2^127+1)'} > > > * A document for each result of running the tests on an actual platform: > > {'machine':'bsd.math.washington.edu', 'version':'sage-4.5.3', > > 'timings':{0:1.3, 1:0.5,...} } > > Here, the timings are stored as a mapping from id's to floats. > > This last option seems most "natural" to me, though identical inputs > that appear in multiple suites would generally(?) get different ids in > the collections. Would it be better to use a hash of the 'code' for the > 'id', or can the database automatically ensure that different ids imply > different inputs?
http://www.mongodb.org/display/DOCS/Indexes#Indexes-UniqueIndexes -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org