Materialized Views, Summary Tables, MQTs

Hi,

Is anybody using, or attempted to use Materialized Views (Oracle/SQL
Server) or Materialized Query Tables(MQTs)/Automatic Summary
Tables(ASTs) (IBM DB2) with Rails?

If so, I’m curious how they can be accessed and used without an
ID/incrementing PKey being used?

If not, can anyone suggest how one can use Summary Views/Tables through
Rails?

Thanks in advance for any help or advice.