Clean domains after RSpec

4 views
Skip to first unread message

joshmckin

unread,
Aug 10, 2010, 1:12:45 PM8/10/10
to SimpleRecord
How do you all clean you domains after running RSpec?

Travis Reeder

unread,
Aug 10, 2010, 1:57:33 PM8/10/10
to simple...@googlegroups.com
There are two ways, in your teardown you can either query for all items then delete them one by one OR delete the entire domain(s).  

On Tue, Aug 10, 2010 at 10:12 AM, joshmckin <josh...@gmail.com> wrote:
How do you all clean you domains after running RSpec?

--
You received this message because you are subscribed to the Google Groups "SimpleRecord" group.
To post to this group, send email to simple...@googlegroups.com.
To unsubscribe from this group, send email to simple-recor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-record?hl=en.


joshmckin

unread,
Aug 11, 2010, 6:41:54 PM8/11/10
to SimpleRecord
Thanks for the info. Still getting use to simpledb.

Which do you think is better deleting the domain or querying all the
records and then deleting each one?

On Aug 10, 12:57 pm, Travis Reeder <tree...@gmail.com> wrote:
> There are two ways, in your teardown you can either query for all items then
> delete them one by one OR delete the entire domain(s).
>
> On Tue, Aug 10, 2010 at 10:12 AM, joshmckin <joshmc...@gmail.com> wrote:
> > How do you all clean you domains after running RSpec?
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "SimpleRecord" group.
> > To post to this group, send email to simple...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > simple-recor...@googlegroups.com<simple-record%2Bunsu...@googlegroups.com>
> > .

Travis Reeder

unread,
Aug 11, 2010, 6:44:25 PM8/11/10
to simple...@googlegroups.com
It really depends on how much data you have in the domain. Delete domain is pretty slow so there's probably some threshold at which delete domain is faster than deleting one by one. Either works fine though.

Travis

To unsubscribe from this group, send email to simple-recor...@googlegroups.com.

joshmckin

unread,
Aug 12, 2010, 11:52:51 AM8/12/10
to SimpleRecord
Going with the delete each options. The first time around it was
pretty slow (some had over 3000 records) but now that its running
every time (before or after) it is preforming good.

Thanks for you help.

Josh

On Aug 11, 5:44 pm, Travis Reeder <tree...@gmail.com> wrote:
> It really depends on how much data you have in the domain. Delete domain is
> pretty slow so there's probably some threshold at which delete domain is
> faster than deleting one by one. Either works fine though.
>
> Travis
>
> On Wed, Aug 11, 2010 at 3:41 PM, joshmckin <joshmc...@gmail.com> wrote:
> > Thanks for the info. Still getting use to simpledb.
>
> > Which do you think is better deleting the domain or querying all the
> > records and then deleting each one?
>
> > On Aug 10, 12:57 pm, Travis Reeder <tree...@gmail.com> wrote:
> > > There are two ways, in your teardown you can either query for all items
> > then
> > > delete them one by one OR delete the entire domain(s).
>
> > > On Tue, Aug 10, 2010 at 10:12 AM, joshmckin <joshmc...@gmail.com> wrote:
> > > > How do you all clean you domains after running RSpec?
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "SimpleRecord" group.
> > > > To post to this group, send email to simple...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > simple-recor...@googlegroups.com<simple-record%2Bunsu...@googlegroups.com>
> > <simple-record%2Bunsu...@googlegroups.com<simple-record%252Buns...@googlegroups.com>
Reply all
Reply to author
Forward
0 new messages