Hi I've been working on a django backend for monetdb. For people who are
interested in it have a look at it
http://github.com/vikram/monetdb/tree/master
I found a couple of issues with the python monetdb-client which are
important for python. It doesn't seem to
support boolean fields and doesn't give the lastrowid.
I have a patch here for both. I'm sure about the lastrowid. As I haven't
tested it in anger, could anyone tell
me if this is alright or have I got things completely wrong.
Thanks
Vikram
diff MonetSQLdb/converters.py ./converters.py
120,125d119
< def Boolean2Str(x, d):
< if x:
< return 'TRUE'
< else:
< return 'FALSE'
<
144d137
< types.BooleanType: Boolean2Str,
diff MonetSQLdb/cursors.py ./cursors.py
38d37
< self.lastrowid = 0
82d80
<
132,134d129
< if self._result.lastid()>0:
< self.lastrowid = self._result.lastid()
<
On Fri, Feb 20, 2009 at 02:18:38PM +0000, Jan Flokstra wrote:
> Update of /cvsroot/monetdb/pathfinder/runtime
> In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv16245
>
> Modified Files:
> Tag: Feb2009
> shredder.mx
> Log Message:
> - fixed shred_characters() bug, sorry :-(
Testing suggests that this indeed fixes the previously reported errors /
failing tests, again. Thanks!
We would *VERY MUCH APPRECIATE*, though, if you could run Mtest yourself ---
and check the results to ensure that your changes do not break previously
working code & tests --- *before* checking in, at least when bugfixing on
the stable branch just before a planned release...
Running Mtest costs (each of) you just 12 key strokes (`Mtest.py -r[Enter]`)
and (even for pathfinder) takes much less time than it takes us to sort out
the problems of many checkins by different people, and Sjoerd to re-build
the release candidates more often than necessary ...
(Once again) thank you very much in advance for you cooperation!
Stefan
>
>
> U shredder.mx
> Index: shredder.mx
> ===================================================================
> RCS file: /cvsroot/monetdb/pathfinder/runtime/shredder.mx,v
> retrieving revision 1.153.2.5
> retrieving revision 1.153.2.6
> diff -u -d -r1.153.2.5 -r1.153.2.6
> --- shredder.mx 20 Feb 2009 13:06:50 -0000 1.153.2.5
> +++ shredder.mx 20 Feb 2009 14:18:35 -0000 1.153.2.6
> @@ -1105,9 +1105,20 @@
> const xmlChar *cs,
> int n)
> {
> +#ifdef OLD_SHRED_CHARACTERS
> shredCtxStruct *shredCtx = (shredCtxStruct*) xmlCtx;
> + int l = MIN(PFSHRED_STRLEN_MAX -(int) shredCtx->content, n);
>
> - if ( (shredCtx->content + n + 1) < shredCtx->content_max) {
> + memcpy(&(shredCtx->content_buf[shredCtx->content]), cs, l);
> + shredCtx->content += l;
> +
> + if (l < n)
> + stream_printf(GDKout, "!WARNING: shred_characters truncated text node > %d characters(starts with `%.16s...')\n",
> + (int) PFSHRED_STRLEN_MAX, cs);
> +#else
> + shredCtxStruct *shredCtx = (shredCtxStruct*) xmlCtx;
> +
> + if ( (shredCtx->content + n + 1) > shredCtx->content_max) {
> shredCtx->content_max = shredCtx->content + n + 1;
> shredCtx->content_buf = GDKrealloc(shredCtx->content_buf, shredCtx->content_max);
> if (shredCtx->content_buf == NULL) {
> @@ -1117,6 +1128,7 @@
> }
> memcpy(&(shredCtx->content_buf[shredCtx->content]), cs, n);
> shredCtx->content += n;
> +#endif
> }
>
> /**
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Monetdb-pf-checkins mailing list
> Monetdb-pf-checkins(a)lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins
>
>
--
| Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl |
| CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ |
| 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 |
| The Netherlands | Fax : +31 (20) 592-4312 |
Sjoerd Mullender wrote:
> Update of /cvsroot/monetdb/MonetDB5/src/optimizer
> In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv2163
>
> Modified Files:
> Tag: Feb2009
> opt_joinpath.mx
> Log Message:
> Undo Martin's checkin per his request:
> "The joinpath optimizer handles the documented front-end compression scheme
> essential to reduce the number of projection joins in the SQL code."
> before creating a new candidate release. The code has not been tested
> in any form so will have to wait until later.
Ok, I overstated thing just a tad: it apparently was tested on one
platform, but not on any others.
--
Sjoerd Mullender
On Tue, Feb 10, 2009 at 09:13:21AM +0000, Stefan Manegold wrote:
> Update of /cvsroot/monetdb/MonetDB/src/gdk
> In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv18180/MonetDB/src/gdk
>
> Modified Files:
> Tag: Feb2009
> gdk_heap.mx
> Log Message:
>
> [on behalf of Peter] re-doing
>
> 2009/02/05 - boncz: MonetDB/src/gdk/gdk_heap.mx,1.108
> - make large allocs fall back again on mmap
Peter,
(how) can we make the limit (more) dependend on / adaptive to the actual
memory size?
Shouldn't this have an effect only with blocks > gdk_vm_minsize == 128 GB ?
I have sample scenarios (on Linux) where, e.g., queries produce intermediate
results of ~ 5GB --- on my 64-bit 8GB machine those queries run in 40 secs
before this change (i.e., with h->storage = STORE_MMAP;), but take 200 secs
(i.e., 5 times as long) after this change (i.e., with h->newstorage =
STORE_MMAP;) ...
Jan R. has seen similar effects with XMark on his Mac ...
Thanks,
Stefan
> now only the actually intended changes
> and as bug fix, i.e., in the Feb2009 release branch
>
>
> Index: gdk_heap.mx
> ===================================================================
> RCS file: /cvsroot/monetdb/MonetDB/src/gdk/gdk_heap.mx,v
> retrieving revision 1.107
> retrieving revision 1.107.2.1
> diff -u -d -r1.107 -r1.107.2.1
> --- gdk_heap.mx 22 Jan 2009 14:47:53 -0000 1.107
> +++ gdk_heap.mx 10 Feb 2009 09:13:19 -0000 1.107.2.1
> @@ -115,7 +115,7 @@
> fp = GDKfilelocate(nme, "wb", ext);
> if (fp != NULL) {
> fclose(fp);
> - h->storage = STORE_MMAP;
> + h->newstorage = STORE_MMAP;
> HEAPload(h, nme, ext, FALSE);
> }
> GDKfree(of);
>
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills and code to
> build responsive, highly engaging applications that combine the power of local
> resources and data with the reach of the web. Download the Adobe AIR SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> Monetdb-checkins mailing list
> Monetdb-checkins(a)lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/monetdb-checkins
--
| Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl |
| CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ |
| 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 |
| The Netherlands | Fax : +31 (20) 592-4312 |
Milena,
do you consider this a bug fix or a new feature?
if the former, it will not be in the upcoming release, since it has not
(yet) been checked in to the Feb2009 release branch...
in case you consider an exceptional back-port of this checkin to the Feb2009
release branch, please make sure you od this using the approriate CVS
commands to ensure that the identical changes are applied ---
see, e.g., page 14 of
http://homepages.cwi.nl/~manegold/Presentations/MonetDBdevTTT.pdf for
details ---
don't hesitate to ask inc ase you need help ...
Stefan
On Mon, Feb 16, 2009 at 01:56:58PM +0000, Milena Ivanova wrote:
> Update of /cvsroot/monetdb/MonetDB5/src/mal
> In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv13891
>
> Modified Files:
> mal_interpreter.mx
> Log Message:
> Call recycler only for instructions with positive value of the recycle field.
>
>
> U mal_interpreter.mx
> Index: mal_interpreter.mx
> ===================================================================
> RCS file: /cvsroot/monetdb/MonetDB5/src/mal/mal_interpreter.mx,v
> retrieving revision 1.286
> retrieving revision 1.287
> diff -u -d -r1.286 -r1.287
> --- mal_interpreter.mx 15 Feb 2009 23:15:30 -0000 1.286
> +++ mal_interpreter.mx 16 Feb 2009 13:56:55 -0000 1.287
> @@ -1993,14 +1993,14 @@
> The recycler works for any variable and relies on policy functions
> registered.
> @= MALrecycleStart
> - if ( pci->recycle >= 0)
> + if ( pci->recycle > 0)
> @1->clk = GDKusec();
> if( !RECYCLEentry(cntxt, mb,stk,pci) )
> @= MALrecycleExit
> - if ( pci->recycle >= 0)
> + if( pci->recycle > 0 ){
> tcs = GDKusec() - @1->clk;
> - if( pci->recycle > 0 )
> RECYCLEexit(cntxt, mb,stk,pci,tcs);
> + }
> @}
> @-
> @node Garbage Collection, Stack Management, Exception Handling, The MAL Interpreter
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
> -Strategies to boost innovation and cut costs with open source participation
> -Receive a $600 discount off the registration fee with the source code: SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> Monetdb-checkins mailing list
> Monetdb-checkins(a)lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/monetdb-checkins
>
>
--
| Dr. Stefan Manegold | mailto:Stefan.Manegold@cwi.nl |
| CWI, P.O.Box 94079 | http://www.cwi.nl/~manegold/ |
| 1090 GB Amsterdam | Tel.: +31 (20) 592-4212 |
| The Netherlands | Fax : +31 (20) 592-4312 |