On Thu, 4 Apr 2013 23:21:57 +0200 Thorben Thuermer <r...@constancy.org> wrote: > On Thu, 4 Apr 2013 23:15:43 +0200 > "Bernd Gewehr" <be...@gewehr.net> wrote: > > Nachtrag: Die angeblichen Duplikate sind nicht von derselben Channel_ID: > > > > id channel_id timestamp value > > 2522215 10 1362713770632 20352394 > > 2522216 6 1362713770632 288.3 Alle > > nein. > in der data tabelle wirst du keine duplikate finden, > weil der unique key verhindert, das die eingetragen werden. > (doppelte eintraege fuer paare von (channel_id,timestamp). > die eintraege dort haben unterschieliche ts.
unterschieliche channel_ids natuerlich. - T. > > -----Ursprüngliche Nachricht----- > > Von: volkszaehler-dev-boun...@lists.volkszaehler.org > > [mailto:volkszaehler-dev-boun...@lists.volkszaehler.org] Im Auftrag von > > Bernd Gewehr > > Gesendet: Donnerstag, 4. April 2013 23:13 > > An: 'volkszaehler-users'; 'volkszaehler.org' > > Betreff: Re: [vz-dev]Alternative Implementierung für vzcompress > > > > Hallo, > > > > -----Ursprüngliche Nachricht----- > > Von: volkszaehler-dev-boun...@lists.volkszaehler.org > > [mailto:volkszaehler-dev-boun...@lists.volkszaehler.org] Im Auftrag von > > Daniel Lauckner > > Gesendet: Donnerstag, 4. April 2013 23:09 > > An: volkszaehler.org > > Betreff: Re: [vz-dev]Alternative Implementierung für vzcompress > > > > Am Donnerstag, 4. April 2013 um 15:03 schrieb f.kn...@yotaweb.de: > > > Da hab ich wohl nen Hinweis vergessen - dieser Commit für die > > > EntityDefinition müsste noch rein, sonst verschluckt sich PHP an der > > > JSON-Datei: > > > <https://github.com/volkszaehler/volkszaehler.org/pull/43>. > > > > Hab die Zeile geändert und jetzt ein Problem mit den Zugriffsrechten: > > > > > string(63) "DELETE command denied to user 'vz'@'localhost' for table > > 'data'" > > } > > PHP Fatal error: SQL FAILURE in /home/pi/bin/vzcompress2.php on line 232 > > > > Ich nutze Sudo php vzcompress2.php - da läufts als root... > > > > Mein Problem sind angebliche Duplikate: > > > > Processing Sensor ID 6... > > Compressing datapoints between 05.03.2013 22:06:10 and 24.03.2013 16:11:28 > > using a 60 second timeframe > > Processing: 08.03.2013 04:35:10 - 08.03.2013 04:36:10 (12%)... > > array(3) { > > [0]=> > > string(5) "23000" > > [1]=> > > int(1062) > > [2]=> > > string(51) "Duplicate entry '6-1362713770632' for key 'ts_uniq'" > > } > > PHP Fatal error: SQL FAILURE in > > /var/www/volkszaehler.org/misc/tools/vzcompress2.php on line 226 > > > > Kann man solche Fehler nicht einfach überspringen und dennoch weitermachen? > > > > Danke und Gruß, > > Bernd > > > >