Code Archive Skip to content Google About Google Privacy Terms
Mnesia Database Questions Cover Expand All Contract AllTable of Contents What is Erlang Top of chapter In a nutshell, what is Erlang? What is OTP? What sort of applications is Erlang particularly suitable for? What sort of problems is Erlang not particularly suitable for? Who uses Erlang for product development? Who uses Erlang for research and teaching? Can I get commercial support for Erlang? Qu
ErlyWebでmnesiaを使ってみる ErlyWebでは各種データベースに対するORマッパーであるErlDBを使用することができます。対応しているデータベースは MySQL、PostgreSQL と Erlang のデータベースエンジンである mnesiaです。 MySQLについては ErlyWebのサイトにある チュートリアル にその手順が書かれています。ここでは、同じサンプルでmnesiaを使用する場合について紹介します。 参考: http://yarivsblog.com/articles/2007/04/17/announcing-erlyweb-06/ http://erlyweb.org/doc/erlydb_mnesia.html 最初にパッチ ErlyWebのソースを修正します。 C:\Program Files\erl5.6\lib\erlyweb-0.7\sr
Erlang で分散 Key-Value Storage を書いているのだがデータの insert で思うように速度が出ていない。get の 10 倍ほど遅い。 ログを見た印象と直感的には insert の際の lock が競合しているのではないかと思われたがプロファイルをとってみたらボトルネックは lock ではなかった。 まず始めに Erlang 付属の fprof でプロファイルをとったがゴミデータばかりで肝心の事は何も分からなかった。 gen_server は末尾再帰ループなので余計に出力が見にくい。さらに数千プロセス分のログが出るので分からない。ML でも gen_server と fprof の相性は良くないという投稿が見受けられた。 色々ググっていたところ、Erlang 製のAmazon Dynamoクローン「Dynomite」の開発者がブログで dynomite_prof
同じホストでレプリケーションする。 本来、異なるホスト間でデータベースのレプリケーションをすることが目的になりますが、練習として、同じホスト内で複数のノードを立ち上げて、レプリケーションのテストを行ってみます。 DSAS開発者の部屋に類似の記事があるので、参考にしてみてください。 Erlang版 memcached でキャッシュデータの永続化をしてみました。 Jabberサーバーをクラスタリングしてみました。 yaws.confの準備 同じホストで2つめのyawsのインスタンスを立ち上げるには、yaws.confにidを指定する必要があります。使用中のファイル C:\Documents and Settings\ユーザー名\Application Data\yaws-1.74\yaws.conf 中の id = の行を有効にし、適当なidを指定してください。 また、2つめのyaws用
I'm starting to architect a project with the following requirements: The overall system will be distributed across multiple physical nodes on a WAN Each node will be using and manipulating a common set of data records Operations on these records must be resilient to network outages I'm considering utilizing Mnesia/Erlang as the base platform for this project, but I'd like to know how well it (Mnes
Rudolph van Graan rvg@REDACTED Mon Jan 2 15:09:10 CET 2006 Previous message (by thread): Mnesia deadlock? Next message (by thread): Mnesia deadlock? Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] Hi Adam, Haven't spoken to you for a while...! We have an internal rule that it is illegal to have *any* side effects apart from mnesia calls inside the transaction funs. Side effects incl
Claes Wikstom klacke@REDACTED Fri Dec 30 09:59:15 CET 2005 Previous message (by thread): Mnesia deadlock? Next message (by thread): Mnesia deadlock? Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] Adam Aquilon wrote: > Hi there! > > Hope someone out there (Klacke, Dan?) understands something about this: > We seemed to get a deadlock in Mnesia. All mnesia calls on one of the > nodes
Claes Wikstrom klacke@REDACTED Fri Dec 30 19:56:57 CET 2005 Previous message (by thread): Mnesia deadlock? Next message (by thread): loadtest - inets {'EXIT',{ebadf Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] Adam Aquilon wrote: > > Eventually we got fed up and went for a coffe. When we came back, > the system had gone back into the "bad" state. Notice that it is only > the mnes
According to my own research answer for the question is - it will choose the most recently connected node. I will be grateful for pointing out errors if found - mnesia is a really complex system! As Dan Gudmundsson pointed out on the mailing list algorithm of selection of the remote node to query is defined in mnesia_lib:set_remote_where_to_read/2. It is the following set_remote_where_to_read(Tab,
If you’re using mnesia disc_copies tables and doing a lot of writes all at once, you’ve probably run into the following message =ERROR REPORT==== 10-Dec-2008::18:07:19 === Mnesia(node@host): ** WARNING ** Mnesia is overloaded: {dump_log, write_threshold} This warning event can get really annoying, especially when they start happening every second. But you can eliminate them, or at least drasticall
1.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11.1.1 About Mnesia . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11.1.2 The Mnesia DataBase Management System (DBMS) . . . . . . . . . . . . . . . 21.2 Getting Started with Mnesia . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41.2.1 Starting Mnesia for t
qlc:sort()関数を使えば実現できます。例えば以下のようなRecordがあったとして、 -record(sample, {id, name, sort_order}). sort_orderでソートした結果を得るには、以下のような感じになります。 mnesia:transaction(fun() -> QH1 = qlc:q([X || X Sample1#sample.sort_order < Sample2#sample.sort_order end), qlc:e(QH2) end). qlc:sort()でラップしてあげる感じですね。 Tweet 関連記事 2023年のRemap Remapにファームウェアビルド機能を追加しました Google I/O 2023でのウェブ関連のトピック 2022年を振り返って 現在のRemapと今後のRemapについて
I have an mnesia table with three fields, i, a and b, created using the record -record(rec, {i, a,b}). Now I insert a row into the table as: mnesia:transaction( fun() -> mnesia:write("T", #rec{i=1, a=2, b=3}, write) end ). Now what do I do if I want to update this row, and change only the value of a to 10, while leaving i and b with the same values? Is there any SQL equivalent like "UPDATE T SET a
Hi, On 06/08/13 09:46, 3k4b251 wrote: > how to backup and restore messages queues exchanges on node? If you just want to backup the broker config then do that by saving and loading the definitions using the management plugin: http://www.rabbitmq.com/management.html#load-definitions If you want to backup the messages as well then you should stop the broker and save the Mnesia
はじめに Mnesiaは、Erlangという言語をベースとした並列プログラミング用のオープンソース開発環境であるErlang OTPに付属している高機能のデータベース管理システム(DBMS)です。Mnesiaは真の分散DBMSなので、世界中の何千ものノード間でデータを分散し、複製し、断片化することも朝飯前です。ユーザーがしなければならないのは、Mnesiaデータベースの分散先となるさまざまなErlangノードを実行することだけです。 Mnesiaという名前になった経緯は、少々眉唾ではありますが、もともとは「Amnesia(健忘症)」という名前だったものを、エリクソンの重役が「データベースに『物忘れ』を連想させる名前を付けるのはいかがなものか」と発言したことから、エンジニアが「A」の文字を取って「Mnesia」とし、「すべてを記憶するもの」の意味を持たせたと言われています。Mnesiaは、
はじめに Mnesiaは、Erlangという言語をベースとした並列プログラミング用のオープンソース開発環境であるErlang OTPに付属している高機能のデータベース管理システム(DBMS)です。Mnesiaは真の分散DBMSなので、世界中の何千ものノード間でデータを分散し、複製し、断片化することも朝飯前です。ユーザーがしなければならないのは、Mnesiaデータベースの分散先となるさまざまなErlangノードを実行することだけです。 Mnesiaという名前になった経緯は、少々眉唾ではありますが、もともとは「Amnesia(健忘症)」という名前だったものを、エリクソンの重役が「データベースに『物忘れ』を連想させる名前を付けるのはいかがなものか」と発言したことから、エンジニアが「A」の文字を取って「Mnesia」とし、「すべてを記憶するもの」の意味を持たせたと
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く