Subject RE: [firebird-support] Any API to get the database size?
Author Alan McDonald
> Thanks Alan,
> with larger page size might effect let's say another couple
> of (may be more) megs. I think I can live with that. But If
> I go with record count approach and apply to a real time
> application this might slow down my application.
>
> Regards
> Yuýsuf CELIK

The more often you check, then of course any method will slow performance.
But you need only check during a critical moment.
Alan

>
> ________________________________
>
> From: firebird-support@yahoogroups.com
> [mailto:firebird-support@yahoogroups.com] On Behalf Of Alan McDonald
> Sent: Thursday, November 08, 2007 11:45 AM
> To: firebird-support@yahoogroups.com
> Subject: RE: [firebird-support] Any API to get the database size?
>
>
>
> > Hi,
> > I hope this is not a silly question.
> > Is there any way to get the database size from any client?
> > If I have given away a demo product so I can limit the size
> > of db and prevent user from adding/updating data.
> >
> > Thanks in advance
> > with regards
> > Yusuf CELIK
> >
> >
>
> I don't think this would be the right approach. The DB size
> is not an accurate means of putting this sort of limit on
> things. If someone restores the DB with a larger page size
> than you expect, then your calcs may not be correct. You're
> better off doing this on record counts - something more
> definitive. Alan
>