How long it takes depends on the number of records in your table but yes,
this kind of search can be pretty expensive.
You could try adding an index to your DB or denormalizing something but this
kind of problem usually takes some engineering to solve.

On Fri, Jun 24, 2011 at 12:49 PM, Michel Pigassou <dag...@gmail.com> wrote:

> Hi all.
>
> My problem is simple : when I put a new entry in my DB, I ensure that there
> is no entries the same day.
> When a request is sent twice, is it possible that to be written in the DB
> and "readebale" (accessible from a select query) the process takes more than
> one minute on Heroku?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Heroku" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/heroku/-/1UqnOZY6VBwJ.
> To post to this group, send email to heroku@googlegroups.com.
> To unsubscribe from this group, send email to
> heroku+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/heroku?hl=en.
>

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

Reply via email to